Skip to content

Commit f0f64b7

Browse files
authored
Zip with CLI for WASM, Linux and Windows (#11)
`vimtor/action-zip` seems to have a problem where it does not encode the binary's execute permission in the archive.
1 parent 2bba796 commit f0f64b7

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
run: |
4040
wasm-bindgen --no-typescript --out-name bevy_game --out-dir wasm --target web target/wasm32-unknown-unknown/release/${{ env.binary }}.wasm
4141
cp -r assets wasm/
42+
4243
- name: Package as a zip
43-
uses: vimtor/action-zip@v1
44-
with:
45-
files: wasm
46-
dest: ${{ env.binary }}.zip
44+
working-directory: ./wasm
45+
run: |
46+
zip --recurse-paths ../${{ env.binary }}.zip .
4747
4848
- name: Upload binaries to artifacts
4949
uses: actions/upload-artifact@v3
@@ -87,11 +87,11 @@ jobs:
8787
mkdir linux
8888
cp target/x86_64-unknown-linux-gnu/release/${{ env.binary }} linux/
8989
cp -r assets linux/
90+
9091
- name: Package as a zip
91-
uses: vimtor/action-zip@v1
92-
with:
93-
files: linux
94-
dest: ${{ env.binary }}.zip
92+
working-directory: ./linux
93+
run: |
94+
zip --recurse-paths ../${{ env.binary }}.zip .
9595
9696
- name: Upload binaries to artifacts
9797
uses: actions/upload-artifact@v3
@@ -132,11 +132,10 @@ jobs:
132132
mkdir windows
133133
cp target/x86_64-pc-windows-msvc/release/${{ env.binary }}.exe windows/
134134
cp -r assets windows/
135+
135136
- name: Package as a zip
136-
uses: vimtor/action-zip@v1
137-
with:
138-
files: windows
139-
dest: ${{ env.binary }}.zip
137+
run: |
138+
Compress-Archive -Path windows/* -DestinationPath ${{ env.binary }}.zip
140139
141140
- name: Upload binaries to artifacts
142141
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)