We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675ec6b commit 9158b89Copy full SHA for 9158b89
.github/workflows/fastpix-python.yml
@@ -0,0 +1,31 @@
1
+name: Publish Python distribution to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*.*.*' # Triggers on version tags like v0.1.0, v1.0.0, etc.
7
8
+jobs:
9
+ build-and-publish:
10
+ runs-on: ubuntu-latest
11
+ environment: pypi
12
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.x'
20
21
+ - name: Install build tools
22
+ run: python -m pip install --upgrade build twine
23
24
+ - name: Build package
25
+ run: python -m build
26
27
+ - name: Publish to PyPI
28
+ env:
29
+ TWINE_USERNAME: __token__
30
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
31
+ run: twine upload dist/*
0 commit comments