@@ -28,81 +28,71 @@ jobs:
2828 CCACHE_SLOPPINESS : time_macros
2929 SCCACHE_GHA_ENABLED : " true"
3030 steps :
31- - uses : actions/checkout@v4
32-
33- - name : Set up ccache for ${{ matrix.arch }}
34- 35- with :
36- path : ${{ env.CCACHE_DIR }}
37- key : ${{ runner.os }}-ccache-release-${{ matrix.arch }}-${{ github.sha }}
38- restore-keys : |
39- ${{ runner.os }}-ccache-release-${{ matrix.arch }}-
40-
41- - name : set up sccache-cache
42- uses :
mozilla-actions/[email protected] 43-
44- - name : Get dependencies
45- if : always()
46- run : chmod +x ./get-dependencies.sh && ./get-dependencies.sh
31+ - uses : actions/checkout@v4
32+
33+ - name : Set up ccache for ${{ matrix.arch }}
34+ 35+ with :
36+ path : ${{ env.CCACHE_DIR }}
37+ key : ${{ runner.os }}-ccache-release-${{ matrix.arch }}-${{ github.sha }}
38+ restore-keys : |
39+ ${{ runner.os }}-ccache-release-${{ matrix.arch }}-
40+
41+ - name : set up sccache-cache
42+ uses :
mozilla-actions/[email protected] 43+
44+ - name : Get dependencies
45+ if : always()
46+ run : chmod +x ./get-dependencies.sh && ./get-dependencies.sh
47+
48+ - name : Make AppImage
49+ run : chmod +x ./ares-appimage.sh && ./ares-appimage.sh
50+
51+ - name : Upload artifact
52+ 53+ with :
54+ name : AppImage-${{ matrix.arch }}
55+ path : " dist"
56+
57+ - name : Upload version file
58+ 59+ with :
60+ name : version
61+ path : ~/version
62+ overwrite : true
4763
48- - name : Make AppImage
49- run : chmod +x ./ares-appimage.sh && ./ares-appimage.sh
50-
51- - name : Upload artifact
52- 53- with :
54- name : AppImage-${{ matrix.arch }}
55- path : ' dist'
56-
57- - name : Upload version file
58- 59- with :
60- name : version
61- path : ~/version
62- overwrite : true
63-
6464 release :
65- if : ${{ github.ref_name == 'main' }}
66- needs : [build]
67- permissions : write-all
68- runs-on : ubuntu-latest
65+ if : ${{ github.ref_name == 'main' }}
66+ needs : [build]
67+ permissions : write-all
68+ runs-on : ubuntu-latest
6969
70- steps :
71- 72- with :
73- name : AppImage-x86_64
70+ steps :
71+ 72+ with :
73+ name : AppImage-x86_64
7474
75- 76- with :
77- name : AppImage-aarch64
75+ 76+ with :
77+ name : AppImage-aarch64
7878
79- 80- with :
81- name : version
82-
83- - name : Read version and Get date
84- run : |
85- echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
86- echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
79+ 80+ with :
81+ name : version
8782
88- - name : Release Artifacts
89- 90- with :
91- name : " ares: ${{ env.VERSION }}"
92- tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
93- prerelease : false
94- draft : false
95- generate_release_notes : false
96- make_latest : true
97- files : |
98- *.AppImage*
83+ - name : Read version and Get date
84+ run : |
85+ echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
86+ echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
9987
100- - uses : actions/checkout@v4
101- - name : Update LATEST_VERSION
102- run : |
103- echo "${{ env.VERSION }}" > ./LATEST_VERSION
104- git config user.name "github-actions[bot]"
105- git config user.email "github-actions[bot]@users.noreply.github.com"
106- git add ./LATEST_VERSION
107- git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
108- git push
88+ - name : Release Artifacts
89+ 90+ with :
91+ name : " ares: ${{ env.VERSION }}"
92+ tag_name : " ${{ env.VERSION }}@${{ env.DATE }}"
93+ prerelease : false
94+ draft : false
95+ generate_release_notes : false
96+ make_latest : true
97+ files : |
98+ *.AppImage*
0 commit comments