Run deploy job after test success #2
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 staging | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
local-deploy-and-test: | |
uses: ./.github/workflows/foundry-tests.yml | |
deploy-staging: | |
needs: local-deploy-and-test | |
concurrency: | |
group: "deploy-staging-${{github.ref}}" | |
cancel-in-progress: false | |
runs-on: "ubuntu-latest" | |
environment: "staging" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node 20.x Environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: "Install dependencies" | |
run: "npm ci" | |
- name: "Deploy corporations" | |
env: | |
PRIVATE_KEY: ${{ secrets.CORPORATIONS_PRIVATE_KEY }} | |
CORPORATIONS_NAMESPACE: ${{ vars.CORPORATIONS_NAMESPACE }} | |
run: | | |
cd packages/corporations | |
npm run deploy:garnet |