File tree Expand file tree Collapse file tree 1 file changed +15
-20
lines changed
Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change 1- # This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
1+ name : Main
22
3- name : AutoRelease
3+ on : push
44
5- on :
6- push :
7- branches : [ main ]
8-
9- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
105jobs :
11- # This workflow contains a single job called "build"
12- release :
13- # The type of runner that the job will run on
6+ build :
147 runs-on : ubuntu-latest
15-
16- # Steps represent a sequence of tasks that will be executed as part of the job
178 steps :
18- - uses : actions/checkout@v3
19- - uses : CupOfTea696/gh-action-auto-release@v1.0.2
9+ - name : Checkout
10+ uses : actions/checkout@v4
11+ - name : Build
12+ run : echo ${{ github.sha }} > Release.txt
13+ - name : Test
14+ run : cat Release.txt
15+ - name : Release
16+ uses : softprops/action-gh-release@v2
17+ if : github.ref_type == 'tag'
2018 with :
21- title : " Release: $version"
22- tag : " v$semver"
23- draft : false
24- regex : " /^Release: #{semver}$/i"
25- env :
26- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ files : |
20+ Release.txt
21+ LICENSE
You can’t perform that action at this time.
0 commit comments