Skip to content

Commit

Permalink
update staging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Aug 20, 2024
1 parent c4facee commit 338082a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,31 @@ on:
push:
branches:
- 'main'
- 'staging'

jobs:
publish:
if: github.ref == 'refs/heads/main'
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-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 }}

1 comment on commit 338082a

@johnyboy1991
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is used for

Please sign in to comment.