Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
test: link deployment to github environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mongj committed Dec 16, 2023
1 parent f18f813 commit f0dd8bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
stag-deploy:
name: Deployment to staging
runs-on: ubuntu-latest
environment: Staging
needs: test
if: github.ref == 'refs/heads/staging'
steps:
Expand All @@ -47,6 +48,7 @@ jobs:
prod-deploy:
name: Deployment to production
runs-on: ubuntu-latest
environment: Production
needs: test
if: github.ref == 'refs/heads/main'
steps:
Expand Down

0 comments on commit f0dd8bd

Please sign in to comment.