fix: `tar czf` produce .gz not .xz

close #142
This commit is contained in:
Aloxaf 2020-12-16 01:01:05 +08:00
parent 911bc16b45
commit a062a7d693
No known key found for this signature in database
GPG Key ID: A07920B86500DE6C
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ jobs:
args: --release
- id: get_name
run: |
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-x86_64-unknown-linux-gnu.tar.xz
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-x86_64-unknown-linux-gnu.tar.gz
- run: |
tar czf ${{ steps.get_name.outputs.NAME }} ./target/release/silicon
- uses: actions/upload-release-asset@v1
@ -70,7 +70,7 @@ jobs:
args: --release
- id: get_name
run: |
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-x86_64-apple-darwin.tar.xz
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-x86_64-apple-darwin.tar.gz
- run: |
tar czf ${{ steps.get_name.outputs.NAME }} ./target/release/silicon
- uses: actions/upload-release-asset@v1
@ -103,7 +103,7 @@ jobs:
args: --release --target ${{ matrix.target }}
- id: get_name
run: |
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-${{ matrix.target }}.tar.xz
echo ::set-output name=NAME::silicon-${GITHUB_REF/refs\/tags\//}-${{ matrix.target }}.tar.gz
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: |
shopt -s extglob