We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa9e0db commit f4a2630Copy full SHA for f4a2630
.github/workflows/pypi.yml
@@ -0,0 +1,23 @@
1
+name: Publish to PyPI
2
+on: push
3
+jobs:
4
+ build:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v3
8
+ - uses: actions/setup-python@v4
9
+ with:
10
+ python-version: '3.10'
11
+ - run: pip install --upgrade build
12
+ - run: python -m build --sdist --wheel
13
+ - name: Publish to TestPyPI
14
+ uses: pypa/gh-action-pypi-publish@release/v1
15
16
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
17
+ repository-url: https://test.pypi.org/legacy/
18
+ skip-existing: true
19
+ - name: Publish to PyPI
20
+ if: startsWith(github.ref, 'refs/tags')
21
22
23
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments