Skip to content

Commit

Permalink
Publish from main, not master
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Dec 12, 2023
1 parent 8bff05e commit 23276f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 23276f6

Please sign in to comment.