File tree 1 file changed +20
-11
lines changed
1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change 60
60
id : createpackage
61
61
- name : List output directory
62
62
run : ls -lah out/
63
- - name : Upload to GitHub Release
64
-
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
74
63
# - name: Upload to GitHub Release
75
64
# uses: softprops/[email protected]
76
65
# with:
79
68
# files: |
80
69
# out/of_v*.tar.gz
81
70
# 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