File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish new release
2- # on:
3- # push:
4- # branches:
5- # - main
6- # paths:
7- # - argparse.h
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - argparse.h
88
9- on : workflow_dispatch
9+ # on: workflow_dispatch
1010
1111jobs :
1212 new-release :
@@ -31,24 +31,15 @@ jobs:
3131 cat makefile
3232 make
3333 mv argparse-combined.h argparse.h
34+ - name : Create release
35+ if : ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
36+ id : create_release
37+ uses : softprops/action-gh-release@v1
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ with :
41+ tag_name : ${{ steps.newVersion.outputs.value }}
42+ files : argparse.h
43+
44+
3445
35- # - name: Create release
36- # if: ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
37- # id: create_release
38- # uses: actions/create-release@v1
39- # env:
40- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41- # with:
42- # tag_name: ${{ steps.newVersion.outputs.value }}
43- # release_name: ${{ steps.newVersion.outputs.value }}
44- # - name: Upload release asset
45- # if: ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
46- # uses: actions/upload-release-asset@v1
47- # with:
48- # upload_url: ${{ steps.create_release.outputs.upload_url }}
49- # asset_path: argparse.h
50- # asset_name: argparse.h
51-
52-
53-
54-
You can’t perform that action at this time.
0 commit comments