From 338082a9dd2489048d62a401d622837ccce3d5a6 Mon Sep 17 00:00:00 2001 From: NickJ202 Date: Tue, 20 Aug 2024 19:25:53 -0400 Subject: [PATCH] update staging workflow --- .github/workflows/deploy.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 95703c3..5ec2e41 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -4,9 +4,11 @@ on: push: branches: - 'main' + - 'staging' jobs: publish: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -14,7 +16,19 @@ jobs: with: node-version: 20.x - run: npm install - - run: npm run deploy-main + - run: npm run deploy:main + env: + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} + + publish-staging: + if: github.ref == 'refs/heads/staging' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 20.x + - run: npm install + - run: npm run deploy:staging env: DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} - ANT_CONTRACT: ${{ secrets.ANT_CONTRACT }}