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 6d78228 commit b7743f5Copy full SHA for b7743f5
.github/workflows/ci.yaml
@@ -2,6 +2,8 @@ name: CI
2
on:
3
push:
4
branches: [main]
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+*"
7
pull_request:
8
jobs:
9
@@ -67,3 +69,27 @@ jobs:
67
69
uses: re-actors/alls-green@release/v1
68
70
with:
71
jobs: ${{ toJSON(needs) }}
72
+
73
+ publish:
74
75
+ name: Publish to PyPi
76
+ needs:
77
+ - check
78
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
79
+ runs-on: ubuntu-latest
80
+ steps:
81
+ - name: Checkout source
82
+ uses: actions/checkout@v4
83
+ - name: Set up Python 3.10
84
+ uses: actions/setup-python@v5
85
+ with:
86
+ python-version: "3.10"
87
+ - name: install flit
88
+ run: |
89
+ pip install flit~=3.4
90
+ - name: Build and publish
91
92
+ flit publish
93
+ env:
94
+ FLIT_USERNAME: __token__
95
+ FLIT_PASSWORD: ${{ secrets.PYPI }}
0 commit comments