Skip to content

Commit

Permalink
Fix action conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
odrusso committed Feb 15, 2024
1 parent 2ab0648 commit 3bf4231
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build, test, and deploy
on:
push:
branches:
- master
- 'stage/**'
on: [ push ]

jobs:
api:
runs-on: ubuntu-latest
Expand All @@ -23,6 +20,7 @@ jobs:

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

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

0 comments on commit 3bf4231

Please sign in to comment.