File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : deploy
2
2
3
3
on :
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'
7
10
8
11
jobs :
9
12
10
13
deploy :
11
14
runs-on : ubuntu-latest
15
+ environment : deploy
16
+ permissions :
17
+ id-token : write # For PyPI trusted publishers.
12
18
13
19
steps :
14
20
- uses : actions/checkout@v3
24
30
25
31
- name : Publish package to PyPI
26
32
uses : pypa/gh-action-pypi-publish@master
33
+
34
+ - uses : actions-ecosystem/action-push-tag@v1
27
35
with :
28
- user : __token__
29
- password : ${{ secrets.pypi_token }}
36
+ tag : v${{ github.event.inputs.version }}
30
37
31
38
- name : Set up Python
32
39
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.
3
3
1. Create a ``release-VERSION `` branch from ``upstream/master ``.
4
4
2. Update ``CHANGELOG.rst ``.
5
5
3. 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 .
7
7
5. Merge the PR.
You can’t perform that action at this time.
0 commit comments