diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0879faf..35cc18d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -97,13 +97,20 @@ jobs: ref: ${{ needs.variables.outputs.commit_sha }} - uses: Swatinem/rust-cache@v1 + + - name: Install wasm32-unknown-unknown target + run: rustup target add wasm32-unknown-unknown + - name: Install cargo-near run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh + - name: Build contract run: cargo near build --no-docker --no-abi + - name: Install near CLI run: | curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.3.1/near-cli-rs-v0.3.1-installer.sh | sh + - name: Deploy contract run: | near contract deploy $NEAR_CONTRACT_ACCOUNT_ID use-file ./target/near/mystery_box.wasm without-init-call network-config $NEAR_NETWORK sign-with-plaintext-private-key --signer-public-key "$NEAR_CONTRACT_ACCOUNT_PUBLIC_KEY" --signer-private-key "$NEAR_CONTRACT_ACCOUNT_PRIVATE_KEY" send