File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 4
4
name : Publish a new release
5
5
6
6
on :
7
- release :
8
- types :
9
- - published
10
-
7
+ push :
8
+ branches :
9
+ - main
11
10
jobs :
12
11
build :
13
12
runs-on : ubuntu-latest
14
13
steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 0
18
+ - name : Changelog
19
+ uses : scottbrenner/generate-changelog-action@master
20
+ - name : Create Release
21
+ id : create_release
22
+ uses : actions/create-release@latest
23
+ env :
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
25
+ with :
26
+ tag_name : v0.0.${{ github.run_number }}
27
+ release_name : Release v0.0.${{ github.run_number }}
28
+ body : |
29
+ ${{ steps.Changelog.outputs.changelog }}
30
+ draft : false
31
+ prerelease : false
15
32
- uses : actions/checkout@v2
16
33
- name : Set up Python 3.9
17
34
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Create Release
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - main1
6
6
jobs :
7
7
build :
8
8
name : Create Release
You can’t perform that action at this time.
0 commit comments