Skip to content

Commit 8dceef3

Browse files
committed
ci: release without including directory name into zip
1 parent 6607ad9 commit 8dceef3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ jobs:
5151
- name: Compress files
5252
run: |
5353
# Compress the Windows executable to zip
54-
zip -r exec/deckard-windows-amd64.exe.zip exec/deckard-windows-amd64.exe
54+
zip -r -j deckard-windows-amd64.exe.zip exec/deckard-windows-amd64.exe
5555
5656
# Compress the Linux executable to tar.gz
57-
tar -czvf exec/deckard-linux-amd64.tar.gz exec/deckard-linux-amd64
57+
tar -czvf deckard-linux-amd64.tar.gz -C exec deckard-linux-amd64
5858
5959
- name: Publish
6060
uses: softprops/action-gh-release@v1
6161
with:
6262
files: |
63-
exec/deckard-windows-amd64.exe.zip
64-
exec/deckard-linux-amd64.tar.gz
63+
deckard-windows-amd64.exe.zip
64+
deckard-linux-amd64.tar.gz
6565
6666
release-deckard-image:
6767
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)