Skip to content

Commit 9e5e4ea

Browse files
committed
actions: update workflow
Signed-off-by: Mark Pashmfouroush <mark@markpash.me>
1 parent 20024b7 commit 9e5e4ea

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/go-build.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ jobs:
4949
CGO_ENABLED: 0
5050
steps:
5151
- name: Checkout codebase
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4
5353

5454
- name: Show workflow information
5555
run: |
56-
export _NAME=$GOOS-$GOARCH$GOARM$GOMIPS.${GITHUB_SHA::6}
56+
export _NAME=$GOOS-$GOARCH$GOARM$GOMIPS
5757
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, GOMIPS: $GOMIPS, RELEASE_NAME: $_NAME"
5858
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV
59+
echo "REF=${GITHUB_SHA::6}" >> $GITHUB_ENV
5960
6061
- name: Set up Go
61-
uses: actions/setup-go@v4
62+
uses: actions/setup-go@v5
6263
with:
6364
go-version: '1.21'
6465
check-latest: true
6566

6667
- name: Build warp-plus
6768
run: |
68-
mkdir -p build_assets
6969
go build -v -o build_assets/ -trimpath -ldflags "-s -w -buildid=" .
7070
7171
- name: Copy README.md & LICENSE
@@ -78,9 +78,9 @@ jobs:
7878
run: |
7979
pushd ./build_assets || exit 1
8080
touch -mt $(date +%Y01010000) *
81-
zip -9vr ../warp-plus-${{ env.ASSET_NAME }}.zip .
81+
zip -9vr ../warp-plus_${{ env.ASSET_NAME }}.zip .
8282
popd || exit 1
83-
FILE=./warp-plus-${{ env.ASSET_NAME }}.zip
83+
FILE=./warp-plus_${{ env.ASSET_NAME }}.zip
8484
DGST=$FILE.dgst
8585
for METHOD in {"md5","sha256","sha512"}
8686
do
@@ -89,20 +89,20 @@ jobs:
8989
9090
- name: Change the name
9191
run: |
92-
mv ./build_assets ./warp-plus-${{ env.ASSET_NAME }}
92+
mv ./build_assets ./warp-plus_${{ env.ASSET_NAME }}
9393
9494
- name: Upload files to Artifacts
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9696
with:
97-
name: warp-plus-${{ env.ASSET_NAME }}
97+
name: warp-plus_${{ env.ASSET_NAME }}_${{ env.REF }}
9898
path: |
99-
./warp-plus-${{ env.ASSET_NAME }}/*
99+
./warp-plus_${{ env.ASSET_NAME }}/*
100100
101101
- name: Upload binaries to release
102102
uses: svenstaro/upload-release-action@v2
103103
if: github.event_name == 'release'
104104
with:
105105
repo_token: ${{ secrets.GITHUB_TOKEN }}
106-
file: ./warp-plus-${{ env.ASSET_NAME }}.zip*
106+
file: ./warp-plus_${{ env.ASSET_NAME }}.zip*
107107
tag: ${{ github.ref }}
108108
file_glob: true

0 commit comments

Comments
 (0)