Skip to content

Commit

Permalink
tar.gz instead of zip
Browse files Browse the repository at this point in the history
  • Loading branch information
b100dian committed Dec 2, 2024
1 parent 53f6ba1 commit 4324f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-release.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
run: yarn run tsc
- name: Build project
run: yarn build
- name: Bundle builded data
run: zip release-${{github.head_ref || github.ref_name}}.zip -r ./target/*
- name: Bundle built data
run: tar -czf hydrogen-web-${{github.head_ref || github.ref_name}}.tar.gz -C ./target/ .
- name: Update release
if: startsWith(github.ref, 'refs/tags/')
run: |
gh release upload ${{ github.ref_name }} release-${{github.head_ref || github.ref_name}}.zip --clobber
gh release upload ${{ github.ref_name }} hydrogen-web-${{github.head_ref || github.ref_name}}.tar.gz --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4324f40

Please sign in to comment.