File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 77 create-zip-files :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v3
10+ - uses : actions/checkout@v6
1111 with :
1212 fetch-depth : 0
1313
1616 sudo timedatectl set-timezone Asia/Singapore
1717 echo "DATE=$(date +%y.%m)" >> $GITHUB_ENV
1818 echo "COUNT=$(git rev-list --count HEAD --since=$(date --date="$(date +%Y-%m-01) - 1 second" +%s) | xargs printf "%02d")" >> $GITHUB_ENV
19- echo "SHA_SHORT=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV
20- echo "DATE_OLD=$(date +%Y-%m-%d)" >> $GITHUB_ENV
21-
22- - name : Create git hash and version
23- run : |
24- echo "${{ env.SHA_SHORT }}" | tee ./resources/git_hash
25- echo "v${{ env.DATE }}.${{ env.COUNT }}" | tee ./resources/version
2619
2720 - name : Move binaries
2821 run : |
4033 - name : Zip files
4134 run : zip -r ${{ github.event.repository.name }}_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md
4235
43- - name : Create this file to get latest git hash
44- run : |
45- echo "This file is for version checking purposes only. Get the correct zip file for your platform in the release assets." > README.txt
46- zip -r git-hash_${{ env.DATE_OLD }}-${{ env.SHA_SHORT }}.zip README.txt
47-
4836 - name : Remove all assets from latest release
4937 env :
5038 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6654 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6755 run : |
6856 gh release upload latest \
69- git-hash_${{ env.DATE_OLD }}-${{ env.SHA_SHORT }}.zip \
7057 ${{ github.event.repository.name }}_v${{ env.DATE }}.${{ env.COUNT }}.zip \
7158 --clobber -R ${{ github.repository }}
7259
You can’t perform that action at this time.
0 commit comments