Skip to content

ci: provide environment name explicitly #5

ci: provide environment name explicitly

ci: provide environment name explicitly #5

Workflow file for this run

name: Deploy to Dev account on testnet
on:
push:
branches: [develop]
jobs:
test:
uses: ./.github/workflows/test.yml
deploy-dev:
name: Deploy contract to ${{ vars.NEAR_ACCOUNT_ID }}
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 to Dev account on testnet
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