ci: don't generate ABI during dev deployment #15
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: Deploy contract on Dev account | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy-dev: | |
name: Deploy contract | |
runs-on: ubuntu-latest | |
environment: dev.abstract-dao.testnet | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install cargo-near CLI | |
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.4/cargo-near-installer.sh | sh | |
- name: Deploy contract to ${{ vars.NEAR_ACCOUNT_ID }} | |
run: | | |
cargo near deploy "${{ vars.NEAR_ACCOUNT_ID }}" \ | |
without-init-call \ | |
network-config "${{ vars.NEAR_NETWORK }}" \ | |
sign-with-plaintext-private-key \ | |
--signer-public-key "${{ vars.NEAR_ACCOUNT_PUBLIC_KEY }}" \ | |
--signer-private-key "${{ secrets.NEAR_ACCOUNT_PRIVATE_KEY }}" \ | |
send \ | |
--no-abi |