From a3cdcb247bf4a77f496281a919bf4e9b83ba9815 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 26 Sep 2024 09:55:20 -0400 Subject: [PATCH] Run on main and production branches for deploys -- we'll use separate environments to differentiate keys --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 564ac95..f154e50 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,11 +3,13 @@ name: Deploy to S3 and CloudFront on: push: branches: + - main - production jobs: build-and-deploy: runs-on: ubuntu-latest + environment: ${{ github.ref == 'refs/heads/production' && 'production' || 'development' }} steps: - name: Checkout Code