@@ -46,18 +46,57 @@ jobs:
4646 runs-on : ubuntu-latest
4747
4848 steps :
49- -
uses :
actions/[email protected] .8 49+ -
uses :
actions/[email protected] .9 5050 with :
5151 name : AppImage
52+ 53+ with :
54+ name : version
55+
56+ - name : Read version
57+ run : |
58+ cat version
59+ export VERSION="$(cat version)"
60+ echo "APP_VERSION=${VERSION}" >> "${GITHUB_ENV}"
61+
62+ # Version Release
63+ - name : Del Previous Release
64+ run : |
65+ gh release delete "${APP_VERSION}" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y
66+ sleep 5
67+ env :
68+ GH_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
69+ continue-on-error : true
70+ - name : Continuous Releaser
71+ uses : softprops/action-gh-release@v2
72+ with :
73+ name : " GIMP AppImage ${{ env.APP_VERSION }}"
74+ tag_name : " ${{ env.APP_VERSION}}"
75+ prerelease : false
76+ draft : false
77+ generate_release_notes : false
78+ make_latest : true
79+ files : |
80+ *.AppImage*
81+ *.AppBundle*
82+ continue-on-error : false
5283
53- - name : release
54- uses : marvinpinto/action-automatic-releases@latest
84+ # Snapshot Release
85+ - name : Get Date
86+ run : |
87+ SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
88+ echo SNAPSHOT_TAG="${SNAPSHOT_TAG}" >> "${GITHUB_ENV}"
89+ continue-on-error : false
90+ - name : Snapshot Releaser
91+ uses : softprops/action-gh-release@v2
5592 with :
56- title : Continuous build
57- automatic_release_tag : continuous
93+ name : " Snapshot ${{ env.APP_VERSION }} "
94+ tag_name : " ${{ env.SNAPSHOT_TAG }} "
5895 prerelease : false
5996 draft : false
97+ generate_release_notes : false
98+ make_latest : false
6099 files : |
61100 *.AppImage*
62101 *.AppBundle*
63- repo_token : ${{ secrets.GITHUB_TOKEN }}
102+ continue-on-error : false
0 commit comments