Skip to content

Deploy Treasury Factory contract #1

Deploy Treasury Factory contract

Deploy Treasury Factory contract #1

name: Deploy Treasury Factory contract
on:
workflow_dispatch: # This allows manual triggering
jobs:
test:
uses: ./.github/workflows/test-treasury-fatctory-contract.yml

Check failure on line 8 in .github/workflows/deploy-treasury-factory-contract.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-treasury-factory-contract.yml

Invalid workflow file

error parsing called workflow ".github/workflows/deploy-treasury-factory-contract.yml" -> "./.github/workflows/test-treasury-fatctory-contract.yml" : failed to fetch workflow: workflow was not found.
deploy:
name: Deploy to production
needs: [test]
runs-on: ubuntu-latest
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/latest/download/cargo-near-installer.sh | sh
- name: Deploy
run: |
cargo near deploy --no-docker "${{ vars.TREASURY_FACTORY_ACCOUNT_ID }}" \
without-init-call \
network-config mainnet \
--signer-public-key "${{ vars.TREASURY_FACTORY_ACCOUNT_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.TREASURY_FACTORY_ACCOUNT_PRIVATE_KEY }}" \
send
working-directory: ./web4/treasury-factory