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