v0.11.1 #6
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: Smart Contract Deployment | |
on: | |
release: | |
types: [published] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: rustup target add wasm32-unknown-unknown | |
- name: Contract Build | |
run: | | |
cargo build --target wasm32-unknown-unknown --release | |
- name: Code Tests | |
run: | | |
cargo test | |
- run: cargo install --locked --version 20.0.0-rc2 soroban-cli | |
- name: Contract Deployment issuance-contract to futurenet | |
run: | | |
soroban contract deploy \ | |
--wasm target/wasm32-unknown-unknown/release/issuance_contract.wasm \ | |
--source ${{ secrets.DEPLOYER_SECRET }} \ | |
--rpc-url https://rpc-futurenet.stellar.org:443/ \ | |
--network-passphrase 'Test SDF Future Network ; October 2022' | |
- name: Contract Deployment did-contract to futurenet | |
run: | | |
soroban contract deploy \ | |
--wasm target/wasm32-unknown-unknown/release/did_contract.wasm \ | |
--source ${{ secrets.DEPLOYER_SECRET }} \ | |
--rpc-url https://rpc-futurenet.stellar.org:443/ \ | |
--network-passphrase 'Test SDF Future Network ; October 2022' |