From 23276f68458af21d1ad9de763cd62881813f894a Mon Sep 17 00:00:00 2001 From: Damien Ayers Date: Tue, 12 Dec 2023 16:30:22 +1100 Subject: [PATCH] Publish from main, not master --- .github/workflows/deploy-production.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-production.yaml b/.github/workflows/deploy-production.yaml index b03b33e3d..07fc9bfca 100644 --- a/.github/workflows/deploy-production.yaml +++ b/.github/workflows/deploy-production.yaml @@ -5,9 +5,9 @@ on: repository_dispatch: types: [republish-docs] # Triggered from the dea-notebooks repo push: - branches: [master] + branches: [main] pull_request: - branches: [master] + branches: [main] permissions: id-token: write # For requesting the JWT used by OIDC Authentication @@ -40,14 +40,14 @@ jobs: run: ./build-production.sh - name: Configure AWS credentials via OIDC - if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: arn:aws:iam::538673716275:role/github-actions-dea-docs aws-region: ap-southeast-2 - name: Deploy site - if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' env: DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }} run: ./deploy-production.sh