Skip to content

ci: fix branch list

ci: fix branch list #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Deploy to Dev account on testnet

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-dev.yml (Line: 15, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.NEAR_ACCOUNT_ID .github/workflows/deploy-dev.yml (Line: 17, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.NEAR_ACCOUNT_ID
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