@@ -5,73 +5,74 @@ concurrency:
55
66on :
77 schedule :
8- - cron : " 0 16 1/14 * *"
9- workflow_dispatch :
8+ - cron : " 0 7 1/30 * *"
9+ workflow_dispatch : {}
1010
1111jobs :
1212 build :
13- runs-on : ubuntu-latest
13+ name : " ${{ matrix.name }} (${{ matrix.arch }})"
14+ runs-on : ${{ matrix.runs-on }}
15+ strategy :
16+ matrix :
17+ include :
18+ - runs-on : ubuntu-latest
19+ name : Build AppImage
20+ arch : x86_64
21+ # - runs-on: ubuntu-24.04-arm
22+ # name: Build AppImage
23+ # arch: aarch64
1424 container : ghcr.io/pkgforge-dev/archlinux:latest
1525 steps :
16- - uses : actions/checkout@v4
26+ - uses : actions/checkout@v4
27+
28+ - name : Get dependencies
29+ run : chmod +x ./get-dependencies.sh && ./get-dependencies.sh
1730
18- - name : build
19- if : always()
20- run : chmod +x ./get-dependencies.sh && ./get-dependencies.sh
31+ - name : Make AppImage
32+ run : chmod +x ./*-appimage.sh && ./*-appimage.sh
2133
22- - name : Make AppImage
23- run : |
24- chmod +x ./*-appimage.sh && ./*-appimage.sh
25- mkdir dist
26- ls -la
27- mv *.AppImage* dist/
28- mv *.AppBundle* dist/
34+ - name : Upload artifact
35+ uses : actions/upload-artifact@v4.6.2
36+ with :
37+ name : AppImage-${{ matrix.arch }}
38+ path : dist
2939
30- - name : Check version file
31- run : |
32- cat ~/version
33- echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
34-
35- - name : Upload artifact
36- uses : actions/upload-artifact@v4.6.2
37- with :
38- name : AppImage
39- path : ' dist'
40-
41- - name : Upload version file
42- uses : actions/upload-artifact@v4.6.2
43- with :
44- name : version
45- path : ~/version
46-
4740 release :
48- needs : [build]
49- permissions : write-all
50- runs-on : ubuntu-latest
41+ if : ${{ github.ref_name == 'main' }}
42+ needs : [build]
43+ permissions : write-all
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/download-artifact@v4.3.0
47+ with :
48+ pattern : AppImage-*
49+ merge-multiple : true
50+
51+ - name : Read version and Get date
52+ run : |
53+ cat ./version
54+ echo "VERSION=$(cat ./version)" >> "${GITHUB_ENV}"
55+ echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
5156
52- steps :
53- - uses : actions/download-artifact@v4.3.0
54- with :
55- name : AppImage
56- - uses : actions/download-artifact@v4.3.0
57- with :
58- name : version
57+ - name : Release Artifacts
58+ uses : softprops/action-gh-release@v2.2.2
59+ with :
60+ name : " UnleashedRecomp: ${{ env.VERSION }}"
61+ tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
62+ prerelease : false
63+ draft : false
64+ generate_release_notes : false
65+ make_latest : true
66+ files : |
67+ *.AppImage*
68+ *.AppBundle*
5969
60- - name : Read version and Get date
61- run : |
62- echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
63- echo "DATE=$(date +'%Y-%m-%d_%s')" >> "$GITHUB_ENV"
64-
65- - name : Release Artifacts
66- uses : softprops/action-gh-release@v2.3.2
67- with :
68- name : " UnleashedRecomp: ${{ env.VERSION }}"
69- tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
70- prerelease : false
71- draft : false
72- generate_release_notes : false
73- fail_on_unmatched_files : false
74- make_latest : true
75- files : |
76- *.AppImage*
77- *.AppBundle*
70+ - uses : actions/checkout@v4
71+ - name : Update LATEST_VERSION
72+ run : |
73+ echo "${{ env.VERSION }}" > ./LATEST_VERSION
74+ git config user.name "github-actions[bot]"
75+ git config user.email "github-actions[bot]@users.noreply.github.com"
76+ git add ./LATEST_VERSION
77+ git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
78+ git push
0 commit comments