Skip to content

Commit fb67947

Browse files
committed
gh release create --prerelease
1 parent 7174cb2 commit fb67947

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/make_release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ name: Add New Release
33
on:
44
push:
55
branches:
6-
- "production"
6+
- main
77

88
jobs:
99
main-job:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
12+
- uses: actions/checkout@v3
13+
1514
- 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
1716
env:
1817
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1918

2019
- 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
2221
env:
2322
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)