refactor: implement method called new to create Pool more easily #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release wasm | |
on: | |
push: | |
on: development | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install cargo-run-script | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-run-script | |
- name: Build WASM files | |
run: bash ./build.sh | |
env: | |
SOME_ENV_VAR: value | |
- name: Run cargo optimize | |
uses: actions-rs/cargo@v1 | |
with: | |
command: run-script | |
args: optimize | |
- name: Get release ID | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload optimized wasm | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./artifacts/*.wasm | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |