@@ -49,23 +49,23 @@ jobs:
49
49
CGO_ENABLED : 0
50
50
steps :
51
51
- name : Checkout codebase
52
- uses : actions/checkout@v3
52
+ uses : actions/checkout@v4
53
53
54
54
- name : Show workflow information
55
55
run : |
56
- export _NAME=$GOOS-$GOARCH$GOARM$GOMIPS.${GITHUB_SHA::6}
56
+ export _NAME=$GOOS-$GOARCH$GOARM$GOMIPS
57
57
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, GOMIPS: $GOMIPS, RELEASE_NAME: $_NAME"
58
58
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV
59
+ echo "REF=${GITHUB_SHA::6}" >> $GITHUB_ENV
59
60
60
61
- name : Set up Go
61
- uses : actions/setup-go@v4
62
+ uses : actions/setup-go@v5
62
63
with :
63
64
go-version : ' 1.21'
64
65
check-latest : true
65
66
66
67
- name : Build warp-plus
67
68
run : |
68
- mkdir -p build_assets
69
69
go build -v -o build_assets/ -trimpath -ldflags "-s -w -buildid=" .
70
70
71
71
- name : Copy README.md & LICENSE
78
78
run : |
79
79
pushd ./build_assets || exit 1
80
80
touch -mt $(date +%Y01010000) *
81
- zip -9vr ../warp-plus- ${{ env.ASSET_NAME }}.zip .
81
+ zip -9vr ../warp-plus_ ${{ env.ASSET_NAME }}.zip .
82
82
popd || exit 1
83
- FILE=./warp-plus- ${{ env.ASSET_NAME }}.zip
83
+ FILE=./warp-plus_ ${{ env.ASSET_NAME }}.zip
84
84
DGST=$FILE.dgst
85
85
for METHOD in {"md5","sha256","sha512"}
86
86
do
@@ -89,20 +89,20 @@ jobs:
89
89
90
90
- name : Change the name
91
91
run : |
92
- mv ./build_assets ./warp-plus- ${{ env.ASSET_NAME }}
92
+ mv ./build_assets ./warp-plus_ ${{ env.ASSET_NAME }}
93
93
94
94
- name : Upload files to Artifacts
95
- uses : actions/upload-artifact@v3
95
+ uses : actions/upload-artifact@v4
96
96
with :
97
- name : warp-plus- ${{ env.ASSET_NAME }}
97
+ name : warp-plus_ ${{ env.ASSET_NAME }}_${{ env.REF }}
98
98
path : |
99
- ./warp-plus- ${{ env.ASSET_NAME }}/*
99
+ ./warp-plus_ ${{ env.ASSET_NAME }}/*
100
100
101
101
- name : Upload binaries to release
102
102
uses : svenstaro/upload-release-action@v2
103
103
if : github.event_name == 'release'
104
104
with :
105
105
repo_token : ${{ secrets.GITHUB_TOKEN }}
106
- file : ./warp-plus- ${{ env.ASSET_NAME }}.zip*
106
+ file : ./warp-plus_ ${{ env.ASSET_NAME }}.zip*
107
107
tag : ${{ github.ref }}
108
108
file_glob : true
0 commit comments