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