Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit 52b66a1

Browse files
committed
build: Junk directory structure on release archives
1 parent 9fef0fd commit 52b66a1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,15 @@ jobs:
152152
with:
153153
name: intiface-cli-rs-macOS-release
154154
- name: Zip executables
155-
# This follows the naming convention from C# and JS.
155+
# This follows the naming convention from C# and JS. Use -j to junk the
156+
# directory structure.
156157
run: |
157-
zip intiface-cli-rs-linux-x64-Debug.zip intiface-cli-rs-Linux-debug/IntifaceCLI README.md CHANGELOG.md
158-
zip intiface-cli-rs-win-x64-Debug.zip intiface-cli-rs-Windows-debug/IntifaceCLI.exe README.md CHANGELOG.md
159-
zip intiface-cli-rs-mac-x64-Debug.zip intiface-cli-rs-macOS-debug/IntifaceCLI README.md CHANGELOG.md
160-
zip intiface-cli-rs-linux-x64-Release.zip intiface-cli-rs-Linux-release/IntifaceCLI README.md CHANGELOG.md
161-
zip intiface-cli-rs-win-x64-Release.zip intiface-cli-rs-Windows-release/IntifaceCLI.exe README.md CHANGELOG.md
162-
zip intiface-cli-rs-mac-x64-Release.zip intiface-cli-rs-macOS-release/IntifaceCLI README.md CHANGELOG.md
158+
zip -j intiface-cli-rs-linux-x64-Debug.zip intiface-cli-rs-Linux-debug/IntifaceCLI README.md CHANGELOG.md
159+
zip -j intiface-cli-rs-win-x64-Debug.zip intiface-cli-rs-Windows-debug/IntifaceCLI.exe README.md CHANGELOG.md
160+
zip -j intiface-cli-rs-mac-x64-Debug.zip intiface-cli-rs-macOS-debug/IntifaceCLI README.md CHANGELOG.md
161+
zip -j intiface-cli-rs-linux-x64-Release.zip intiface-cli-rs-Linux-release/IntifaceCLI README.md CHANGELOG.md
162+
zip -j intiface-cli-rs-win-x64-Release.zip intiface-cli-rs-Windows-release/IntifaceCLI.exe README.md CHANGELOG.md
163+
zip -j intiface-cli-rs-mac-x64-Release.zip intiface-cli-rs-macOS-release/IntifaceCLI README.md CHANGELOG.md
163164
- name: Release
164165
uses: softprops/action-gh-release@v1
165166
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)