ci: fix branch list #2
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: Deploy to Dev account on testnet | ||
on: | ||
push: | ||
branches: [develop] | ||
env: | ||
NEAR_ACCOUNT_ID: dev.abstract-dao.testnet | ||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
deploy-dev: | ||
name: Deploy contract to ${{ env.NEAR_ACCOUNT_ID }} | ||
Check failure on line 15 in .github/workflows/deploy-dev.yml GitHub Actions / Deploy to Dev account on testnetInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
environment: ${{ env.NEAR_ACCOUNT_ID }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install near CLI | ||
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.14.0/near-cli-rs-installer.sh | sh | ||
- 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 to Dev account on testnet | ||
run: | | ||
cargo near deploy "${{ env.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 |