Skip to content

Commit

Permalink
Refine release files format (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
finiteops authored May 31, 2024
1 parent d1f75f9 commit e2b2625
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ jobs:
run: |
./scripts/build.sh icrc2-minter erc20-minter
ls -la .artifact
# Compress the artifacts into a tar.gz file
- name: Compress artifacts
run: |
mkdir -p ./.release
cd ./.artifact
ls -la .
tar -czf ../.release/erc20-minter-${{ env.RELEASE_TAG }}.tar.gz --owner=0 --group=0 --no-same-owner --no-same-permissions erc20-minter.wasm.gz erc20-minter.did
tar -czf ../.release/icrc2-minter-${{ env.RELEASE_TAG }}.tar.gz --owner=0 --group=0 --no-same-owner --no-same-permissions icrc2-minter.wasm.gz icrc2-minter.did
# Create a new GitHub release with the tag version
- name: Create Release
Expand All @@ -82,9 +91,4 @@ jobs:
prerelease: false
token: ${{ secrets.GH_PKG_TOKEN }}
files: |
.artifact/erc20-minter.did
.artifact/erc20-minter.wasm
.artifact/erc20-minter.wasm.gz
.artifact/icrc2-minter.did
.artifact/icrc2-minter.wasm
.artifact/icrc2-minter.wasm.gz
./.release/*

0 comments on commit e2b2625

Please sign in to comment.