This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
Swap error fix (#442) #247
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 | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Compile with Docker | |
run: | | |
# build wasm files | |
./scripts/build.sh | |
# compress artifacts | |
tar -zcvf elys-bindings-${{ github.ref_name }}.tar.gz artifacts | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: elys-bindings-${{ github.ref_name }}.tar.gz | |
- name: Deploy to TestNet | |
run: | | |
# deploy | |
./scripts/deploy.sh "${{ secrets.KEY_MNEMONIC }}" | |
- name: Test Queries | |
run: | | |
# set user address | |
USER_ADDRESS=elys1dty5tjwtg55vqsxn2k0nup6my50zdpcjqyv0gy | |
# add path | |
export PATH=/tmp:$PATH | |
# run the scripts/queries.sh script | |
./scripts/queries.sh $USER_ADDRESS |