File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : deploy
22
33on :
4- push :
5- tags :
6- - " v*"
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Release version'
8+ required : true
9+ default : ' 1.2.3'
710
811jobs :
912
1013 deploy :
1114 runs-on : ubuntu-latest
15+ environment : deploy
16+ permissions :
17+ id-token : write # For PyPI trusted publishers.
1218
1319 steps :
1420 - uses : actions/checkout@v3
2430
2531 - name : Publish package to PyPI
2632 uses : pypa/gh-action-pypi-publish@master
33+
34+ - uses : actions-ecosystem/action-push-tag@v1
2735 with :
28- user : __token__
29- password : ${{ secrets.pypi_token }}
36+ tag : v${{ github.event.inputs.version }}
3037
3138 - name : Set up Python
3239 uses : actions/setup-python@v4.5.0
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ Here are the steps on how to make a new release.
331. Create a ``release-VERSION `` branch from ``upstream/master ``.
442. Update ``CHANGELOG.rst ``.
553. Push a branch with the changes.
6- 4. Once all builds pass, push a tag to `` upstream `` .
6+ 4. Once all builds pass, run the `` deploy `` workflow manually .
775. Merge the PR.
You can’t perform that action at this time.
0 commit comments