File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,44 @@ name: main
22
33on : push
44
5+ concurrency : production
6+
57jobs :
68 build :
79 runs-on : ubuntu-latest
810 steps :
911 - name : Checkout
1012 uses : actions/checkout@v2
13+ with :
14+ fetch-depth : ' 0'
15+ - name : Get next release version (dry run)
16+ id : taggerDryRun
17+ uses :
anothrNick/[email protected] 18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ WITH_V : true
21+ DRY_RUN : true
22+ - name : echo new tag
23+ run : |
24+ echo "The next tag version will be: ${{ steps.taggerDryRun.outputs.new_tag }}"
25+ - name : echo tag
26+ run : |
27+ echo "The current tag is: ${{ steps.taggerDryRun.outputs.tag }}"
1128 - name : Build
1229 run : |
1330 yarn install
1431 chmod +x astgen-macos
1532 chmod +x astgen-linux
33+ - name : Set next release version
34+ id : taggerFinal
35+ uses :
anothrNick/[email protected] 36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ WITH_V : true
1639 - name : Release
1740 uses : softprops/action-gh-release@v1
1841 with :
19- tag_name : " latest "
42+ tag_name : " $(git describe --tags --abbrev=0) "
2043 files : |
2144 astgen-win.exe
2245 astgen-macos
You can’t perform that action at this time.
0 commit comments