Skip to content

Commit e433674

Browse files
committed
Update build.yml
1 parent 6598ca7 commit e433674

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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

@@ -16,13 +16,6 @@ jobs:
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: |
@@ -40,11 +33,6 @@ jobs:
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 }}
@@ -66,7 +54,6 @@ jobs:
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

0 commit comments

Comments
 (0)