diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1445e3..7740a9c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -60,4 +60,11 @@ jobs: path: target/near/voting_snapshot/* if-no-files-found: error overwrite: true + - uses: actions/upload-artifact@v4 + if: env.GIT_DIFF + with: + name: snapshot-contract + path: target/near/voting_contract/* + if-no-files-found: error + overwrite: true diff --git a/package.json b/package.json index 920dbc2..641f34a 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,10 @@ "build": "cargo build --target wasm32-unknown-unknown --release", "test": "cargo test --release -- --nocapture", "lint": "cargo fmt --all -- --check && cargo clippy --release -- -D warnings", - "cook": "npm run cookSnapshotContract && npm run cookSecret", + "cook": "npm run cookSnapshotContract && npm run cookSecret && npm run cookVoting", "cookSnapshotContract": "cd contracts/voting_snapshot && cargo near build", - "cookSecret": "cd contracts/secret_contract && make build-mainnet" + "cookSecret": "cd contracts/secret_contract && make build-mainnet", + "cookVoting": "cd contracts/voting_contract && cargo near build" }, "dependencies": { "@supercharge/promise-pool": "^2.3.2",