Skip to content

Commit

Permalink
Fix windows packaging again
Browse files Browse the repository at this point in the history
  • Loading branch information
ollej committed Sep 21, 2022
1 parent f7018fc commit bd83255
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,20 @@ jobs:
with:
command: build
args: --release --locked --all-targets
- name: Zip release archive
- name: Zip Linux release archive
if: runner.os == 'Linux'
run: |
mkdir ${{ matrix.config.directory }}
cp target/release/${{ matrix.config.artifact_name }} README.md LICENSE ${{ matrix.config.directory }}
tar -zcf ${{ matrix.config.zip_file }} ${{ matrix.config.directory }}
- name: Zip release archive
if: runner.os == 'Windows' || runner.os == 'macOS'
- name: Zip Windows release archive
if: runner.os == 'Windows'
run: |
mkdir -p ${{ matrix.config.directory }}
cp target/release/${{ matrix.config.artifact_name }},README.md,LICENSE ${{ matrix.config.directory }}
7z a -tzip ${{ matrix.config.zip_file }} ${{ matrix.config.directory }}
- name: Zip MacOS release archive
if: runner.os == 'macOS'
run: |
mkdir -p ${{ matrix.config.directory }}
cp target/release/${{ matrix.config.artifact_name }} README.md LICENSE ${{ matrix.config.directory }}
Expand Down

0 comments on commit bd83255

Please sign in to comment.