File tree Expand file tree Collapse file tree 4 files changed +9
-29
lines changed
Expand file tree Collapse file tree 4 files changed +9
-29
lines changed Original file line number Diff line number Diff line change 1- # modified from https://github.com/simonmichael/hledger/blob/master/.github/workflows/release.yml
2-
3- # Creates a draft github release.
4- # See https://github.com/actions/create-release, still pretty rough as of 20200609.
5- # see also: https://github.com/marketplace/actions/tag-release-on-push-action
6-
71name : Release
82
9- # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
103on :
114 push :
125 tags :
@@ -23,15 +16,11 @@ jobs:
2316 uses : actions/checkout@v4
2417
2518 - name : 🏭 Create Release
26- id : create_release
27- uses : actions/create- release@v1.0.0
19+ run : |
20+ gh release create ${{ github.ref }} --generate-notes
2821 env :
2922 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30- with :
31- tag_name : ${{ github.ref }}
32- release_name : ${{ github.ref }}
33- draft : false
34- prerelease : false
23+
3524 # - name: ⏫ Upload to Hackage
3625 # id: upload_hackage
3726 # env:
Original file line number Diff line number Diff line change @@ -115,11 +115,8 @@ jobs:
115115 mv zip/als-ubuntu.zip .
116116
117117 - name : 🚢 Release Artifacts
118- uses : softprops/action-gh-release@v1
119118 if : startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
120- with :
121- files : als-ubuntu.zip
122- draft : true
123- prerelease : true
124119 env :
125120 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
121+ run : |
122+ gh release upload ${{ github.ref }} als-ubuntu.zip --clobber
Original file line number Diff line number Diff line change @@ -206,11 +206,8 @@ jobs:
206206 mv zip/als-macos.zip .
207207
208208 - name : 🚢 Release Artifacts
209- uses : softprops/action-gh-release@v1
210209 if : startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
211- with :
212- files : als-macos.zip
213- draft : true
214- prerelease : true
215210 env :
216211 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
212+ run : |
213+ gh release upload ${{ github.ref }} als-macos.zip --clobber
Original file line number Diff line number Diff line change @@ -140,11 +140,8 @@ jobs:
140140 mv zip/als-windows.zip .
141141
142142 - name : 🚢 Release Artifacts
143- uses : softprops/action-gh-release@v1
144143 if : startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
145- with :
146- files : als-windows.zip
147- draft : true
148- prerelease : true
149144 env :
150145 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146+ run : |
147+ gh release upload ${{ github.ref }} als-windows.zip --clobber
You can’t perform that action at this time.
0 commit comments