File tree Expand file tree Collapse file tree 1 file changed +20
-11
lines changed
Expand file tree Collapse file tree 1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change 6060 id : createpackage
6161 - name : List output directory
6262 run : ls -lah out/
63- - name : Upload to GitHub Release
64- uses : ncipollo/release-action@v1.12.1
65- with :
66- token : ${{ secrets.GITHUB_TOKEN }}
67- tag : " nightly"
68- artifacts : |
69- out/of_v*.tar.gz
70- out/of_v*.zip
71- allowUpdates : true
72- removeArtifacts : true
73- replacesArtifacts : true
7463 # - name: Upload to GitHub Release
7564 # uses: softprops/action-gh-release@v2.1.0
7665 # with:
7968 # files: |
8069 # out/of_v*.tar.gz
8170 # out/of_v*.zip
71+ # Delete the existing release (but NOT the tag)
72+ - name : Delete existing nightly release if exists
73+ env :
74+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75+ run : |
76+ gh release delete nightly --yes || true
77+ # Recreate nightly release associated with existing tag
78+ - name : Create new nightly release and upload assets
79+ env :
80+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81+ run : |
82+ gh release create nightly \
83+ --title "Nightly Release" \
84+ --notes "Auto-generated nightly build." \
85+ out/of_v*.tar.gz out/of_v*.zip || \
86+ gh release create nightly \
87+ --title "Nightly Release" \
88+ --notes "Auto-generated nightly build." \
89+ --target ${{ github.sha }} \
90+ out/of_v*.tar.gz out/of_v*.zip
You can’t perform that action at this time.
0 commit comments