@@ -5,7 +5,7 @@ concurrency:
55
66on :
77 schedule :
8- - cron : " 0 15 * * 0 "
8+ - cron : " 0 7 1/21 * * "
99 workflow_dispatch :
1010
1111jobs :
1616 - uses : actions/checkout@v4
1717
1818 - name : Get dependencies
19- if : always()
2019 run : chmod +x ./get-dependencies.sh && ./get-dependencies.sh
2120
2221 - name : Make AppImage
@@ -25,58 +24,45 @@ jobs:
2524 mkdir dist
2625 mv *.AppImage* dist/
2726 mv *.AppBundle* dist/
28-
29- - name : Upload artifact
30- 31- with :
32- name : AppImage
33- path : ' dist'
34-
35- - name : Upload version file
36- 37- with :
38- name : version
39- path : ~/version
27+ mv ~/version dist/
4028
4129 release :
42- if : ${{ github.ref_name == 'main' }}
43- needs : [build]
44- permissions : write-all
45- runs-on : ubuntu-latest
46-
47- steps :
48- 49- with :
50- name : AppImage
51- 52- with :
53- name : version
30+ if : ${{ github.ref_name == 'main' }}
31+ needs : [build]
32+ permissions : write-all
33+ runs-on : ubuntu-latest
34+ steps :
35+ 36+ with :
37+ pattern : AppImage-*
38+ merge-multiple : true
5439
55- - name : Read version and Get date
56- run : |
57- echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
58- echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
40+ - name : Read version and Get date
41+ run : |
42+ cat ./version
43+ echo "VERSION=$(cat ./version)" >> "${GITHUB_ENV}"
44+ echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
5945
60- - name : Release Artifacts
61- 62- with :
63- name : " GIMP/PhotoGIMP: ${{ env.VERSION }}"
64- tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
65- prerelease : false
66- draft : false
67- generate_release_notes : false
68- fail_on_unmatched_files : false
69- make_latest : true
70- files : |
71- *.AppImage*
72- *.AppBundle*
46+ - name : Release Artifacts
47+ 48+ with :
49+ name : " GIMP/PhotoGIMP: ${{ env.VERSION }}"
50+ tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
51+ prerelease : false
52+ draft : false
53+ generate_release_notes : false
54+ fail_on_unmatched_files : false
55+ make_latest : true
56+ files : |
57+ *.AppImage*
58+ *.AppBundle*
7359
74- - uses : actions/checkout@v4
75- - name : Update LATEST_VERSION
76- run : |
77- echo "${{ env.VERSION }}" > ./LATEST_VERSION
78- git config user.name "github-actions[bot]"
79- git config user.email "github-actions[bot]@users.noreply.github.com"
80- git add ./LATEST_VERSION
81- git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
82- git push
60+ - uses : actions/checkout@v4
61+ - name : Update LATEST_VERSION
62+ run : |
63+ echo "${{ env.VERSION }}" > ./LATEST_VERSION
64+ git config user.name "github-actions[bot]"
65+ git config user.email "github-actions[bot]@users.noreply.github.com"
66+ git add ./LATEST_VERSION
67+ git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
68+ git push
0 commit comments