Skip to content

Commit c4f5406

Browse files
committed
fix(ci): add missing file_name for windows
1 parent 2307df6 commit c4f5406

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/devcontainer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build and push devcontainer
1+
name: devcontainer
22

33
on:
44
workflow_dispatch:

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ jobs:
126126
# See: https://github.com/actions/virtual-environments/issues/2619
127127
gtar -czvf "torii_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release torii
128128
echo "file_name=torii_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
129+
else
130+
cd ./target/${TARGET}/release
131+
7z a -tzip "torii_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" torii.exe
132+
mv "torii_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" ../../../
133+
echo "file_name=torii_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT
129134
fi
130135
shell: bash
131136

@@ -170,7 +175,7 @@ jobs:
170175
echo "version=v$(cargo get workspace.package.version)" >> $GITHUB_OUTPUT
171176
- name: Display structure of downloaded files
172177
run: ls -R artifacts
173-
- run: gh release create ${{ steps.version_info.outputs.version }} ./artifacts/* --generate-notes --draft
178+
- run: gh release create ${{ steps.version_info.outputs.version }} ./artifacts/*.{gz,zip} --generate-notes --draft
174179

175180
docker-build-and-push:
176181
runs-on: ubuntu-latest-4-cores

0 commit comments

Comments
 (0)