File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Create Release
2
2
on :
3
- release :
4
- types :
5
- - created
3
+ push :
4
+ branches :
5
+ - main
6
6
jobs :
7
7
build :
8
8
name : Create Release
20
20
env :
21
21
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
22
22
with :
23
- tag_name : 0 .0.${{ github.run_number }}
24
- release_name : Release 0 .0.${{ github.run_number }}
23
+ tag_name : v0 .0.${{ github.run_number }}
24
+ release_name : Release v0 .0.${{ github.run_number }}
25
25
body : |
26
26
${{ steps.Changelog.outputs.changelog }}
27
27
draft : false
Original file line number Diff line number Diff line change 4
4
name : Publish a new release
5
5
6
6
on :
7
- push :
8
- branches :
9
- - main
10
-
7
+ workflow_run :
8
+ workflows : ["create-release"]
9
+ branches : [main]
10
+ types :
11
+ - completed
11
12
jobs :
12
13
build :
13
14
runs-on : ubuntu-latest
31
32
--wheel
32
33
--outdir dist/
33
34
.
34
- - name : Publish distribution to Test PyPI
35
- uses : pypa/gh-action-pypi-publish@master
36
- with :
37
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
38
- repository_url : https://test.pypi.org/legacy/
39
35
- name : Publish distribution to PyPI
40
36
if : startsWith(github.ref, 'refs/tags')
41
37
uses : pypa/gh-action-pypi-publish@master
You can’t perform that action at this time.
0 commit comments