File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,20 @@ name: Add New Release
3
3
on :
4
4
push :
5
5
branches :
6
- - " production "
6
+ - main
7
7
8
8
jobs :
9
9
main-job :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Checkout
13
- uses : actions/checkout@v3
14
-
12
+ - uses : actions/checkout@v3
13
+
15
14
- name : Increment latest version number
16
- run : gh release view --json tagName -q ".tagName" | awk -F. '{$3 += 1 ; print $1 "." $2 "." $3}' > version.txt
15
+ run : gh release view --json tagName -q ".tagName" | awk -F. '{$3 += 1 ; print $1 "." $2 "." $3 ".alpha" }' > version.txt
17
16
env :
18
17
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
18
20
19
- name : Add new Release
21
- run : gh release create $(cat version.txt) --verify-tag
20
+ run : gh release create $(cat version.txt) --verify-tag --prerelease
22
21
env :
23
22
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments