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 033f873 commit 9ca4506Copy full SHA for 9ca4506
.github/workflows/build.yml
@@ -69,3 +69,21 @@ jobs:
69
run: |
70
pip install codecov
71
codecov
72
+ publish:
73
+ runs-on: ubuntu-latest
74
+ needs: [lint, test]
75
+ steps:
76
+ - uses: actions/checkout@v2
77
+ - name: Set up Python
78
+ uses: actions/setup-python@v2
79
+ with:
80
+ python-version: '3.9'
81
+ - name: Install dependencies
82
+ run: python -m pip install --upgrade pip setuptools wheel build
83
+ - name: Build a binary wheel and a source tarball
84
+ run: python -m build --sdist --wheel --outdir dist/ .
85
+ - name: Publish distribution to PyPI
86
+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
87
+ uses: pypa/gh-action-pypi-publish@master
88
89
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments