diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da34f6ef..3dcd981c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag: ${{ github.ref }} + name: ${{ github.ref }} draft: true prerelease: false skipIfReleaseExists: true diff --git a/justfile b/justfile index fa1a4116..9473ef0f 100644 --- a/justfile +++ b/justfile @@ -24,17 +24,20 @@ build-rust-release: # Build and compress the WASM blob build-wasm-release: cd stork-wasm; wasm-pack --quiet build --target web --out-name stork --release + cd stork-wasm/pkg; mv stork_bg.wasm stork_bg_unopt.wasm wasm-opt -Os -o stork-wasm/pkg/stork_bg_uncomp.wasm stork-wasm/pkg/stork_bg_unopt.wasm - # gzip -c stork-wasm/pkg/stork_bg_uncomp.wasm > stork-wasm/pkg/stork_bg.wasm - cp stork-wasm/pkg/stork_bg_uncomp.wasm js/dist/stork.wasm + gzip -c stork-wasm/pkg/stork_bg_uncomp.wasm > stork-wasm/pkg/stork_bg.wasm + -@stat -f 'stork-uncomp.wasm: %z bytes' stork-wasm/pkg/stork_bg_uncomp.wasm -@stat -f 'stork.wasm: %z bytes' stork-wasm/pkg/stork_bg.wasm + + mkdir -p js/dist + cp stork-wasm/pkg/stork_bg_uncomp.wasm js/dist/stork.wasm # TODO: Eventually use the compressed one # Build the JS components of the project build-js-release: _yarn node build.js - -@stat -f 'stork.js: %z bytes' js/dist/stork.js ###################################### ## Build for development