We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e4c74a commit 1ae3322Copy full SHA for 1ae3322
.github/workflows/ci.yml
@@ -3,6 +3,8 @@ name: CI
3
on:
4
push:
5
branches: ["master"]
6
+ tags:
7
+ - "[0-9]+.[0-9]+.[0-9]+"
8
pull_request:
9
10
jobs:
@@ -39,3 +41,21 @@ jobs:
39
41
run: |
40
42
python -m tox
43
- uses: codecov/codecov-action@v1
44
+ deploy:
45
+ runs-on: ubuntu-latest
46
+ needs:
47
+ - pre-commit
48
+ - tests
49
+ if: startsWith(github.ref, 'refs/tags')
50
+ steps:
51
+ - uses: actions/checkout@v2
52
+ - uses: actions/setup-python@v2
53
+ - name: Install pypa/build
54
+ run: python -m pip install build
55
+ - name: Build a binary wheel and a source tarball
56
+ run: python -m build --sdist --wheel --outdir dist/
57
+ - name: Publish distribution 📦 to PyPI
58
+ uses: pypa/gh-action-pypi-publish@master
59
+ with:
60
+ user: __token__
61
+ password: ${{ secrets.pypi_token }}
0 commit comments