Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(treasury-factory): deployment workflow #207

Merged
merged 9 commits into from
Jan 13, 2025
15 changes: 7 additions & 8 deletions .github/workflows/deploy-treasury-factory-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on:
workflow_dispatch: # This allows manual triggering

jobs:
test:
uses: ./.github/workflows/test-treasury-fatctory-contract.yml

deploy:
name: Deploy to production
needs: [test]
runs-on: ubuntu-latest
environment: "treasury-factory.near"
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 }}" \
cargo build # TODO: Remove this step once https://github.com/near/cargo-near/issues/287 is fixed
cargo near deploy build-non-reproducible-wasm "${{ vars.NEAR_SOCIAL_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 }}" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}" \
send
working-directory: ./web4/treasury-factory
working-directory: ./treasury-factory
Loading
Loading