Skip to content

Commit

Permalink
modified ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YinMo19 committed Nov 28, 2024
1 parent 0a94353 commit 6a2ea92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ jobs:
cp "../target/${{ matrix.target }}/debug/chatroom.exe" ./
cp "../target/${{ matrix.target }}/release/chatroom.exe" ./chatroom_release.exe
cp -r "../static" ./
cp "../Rocket.toml" ./
7z a "${{ matrix.archive-name }}" chatroom.exe chatroom_release.exe static
else
cp "../target/${{ matrix.target }}/debug/chatroom" ./
cp "../target/${{ matrix.target }}/release/chatroom" ./chatroom_release
cp -r "../static" ./
cp "../Rocket.toml" ./
tar -czf "${{ matrix.archive-name }}" chatroom chatroom_release static
fi
- name: Upload archive
Expand Down Expand Up @@ -102,6 +104,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
files: '/home/runner/work/chatroom/chatroom/archive/*'
files: './*'
draft: true
fail_on_unmatched_files: true

0 comments on commit 6a2ea92

Please sign in to comment.