Skip to content

Commit e94a87a

Browse files
MagicalTuxclaude
andcommitted
create archives for release artifacts
- tar.gz for Linux and macOS binaries - zip for Windows binary - include version tag in archive filenames Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 28ca7b2 commit e94a87a

1 file changed

Lines changed: 25 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,30 @@ jobs:
217217
- name: Prepare release assets
218218
run: |
219219
mkdir -p release
220-
cp artifacts/shells-go-linux-amd64/shells-go-linux-amd64 release/
221-
cp artifacts/shells-go-windows-amd64/shells-go-windows-amd64.exe release/
222-
cp artifacts/shells-go-darwin-amd64/shells-go-darwin-amd64 release/
223-
cp artifacts/shells-go-darwin-arm64/shells-go-darwin-arm64 release/
224-
cp artifacts/shells-go-darwin-universal/shells-go-darwin-universal release/
220+
VERSION=${GITHUB_REF#refs/tags/}
221+
222+
# Linux - tar.gz
223+
tar -czvf release/shells-go-linux-amd64-${VERSION}.tar.gz \
224+
-C artifacts/shells-go-linux-amd64 shells-go-linux-amd64
225+
226+
# Windows - zip
227+
cd artifacts/shells-go-windows-amd64
228+
zip ../../release/shells-go-windows-amd64-${VERSION}.zip shells-go-windows-amd64.exe
229+
cd ../..
230+
231+
# macOS Intel - tar.gz
232+
tar -czvf release/shells-go-darwin-amd64-${VERSION}.tar.gz \
233+
-C artifacts/shells-go-darwin-amd64 shells-go-darwin-amd64
234+
235+
# macOS ARM - tar.gz
236+
tar -czvf release/shells-go-darwin-arm64-${VERSION}.tar.gz \
237+
-C artifacts/shells-go-darwin-arm64 shells-go-darwin-arm64
238+
239+
# macOS Universal - tar.gz
240+
tar -czvf release/shells-go-darwin-universal-${VERSION}.tar.gz \
241+
-C artifacts/shells-go-darwin-universal shells-go-darwin-universal
242+
243+
# Generate checksums
225244
cd release
226245
sha256sum * > checksums.txt
227246
@@ -230,10 +249,4 @@ jobs:
230249
with:
231250
draft: false
232251
generate_release_notes: true
233-
files: |
234-
release/shells-go-linux-amd64
235-
release/shells-go-windows-amd64.exe
236-
release/shells-go-darwin-amd64
237-
release/shells-go-darwin-arm64
238-
release/shells-go-darwin-universal
239-
release/checksums.txt
252+
files: release/*

0 commit comments

Comments
 (0)