Skip to content

Commit

Permalink
deploy to stage
Browse files Browse the repository at this point in the history
  • Loading branch information
odrusso committed Feb 15, 2024
1 parent 3bf4231 commit 12787db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Build and Deploy Backend
working-directory: ./app
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/stage')
run: |
# Bundle all files
zip -r ./deployment.zip .
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Deploy Frontend
uses: reggionick/s3-deploy@v3
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/stage')
with:
folder: ./web/build
bucket: ${{ github.ref == 'ref/head/master' && secrets.PROD_S3_BUCKET || secrets.STAGE_S3_BUCKET }}
Expand Down

0 comments on commit 12787db

Please sign in to comment.