Skip to content

Commit

Permalink
ci: Make sure docs publish step has the proper aws credentials in pub…
Browse files Browse the repository at this point in the history
…lish docs action.
  • Loading branch information
mturoci committed Jan 7, 2025
1 parent 69b6a94 commit 8c2cde1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ jobs:

- uses: actions/setup-go@v1
with:
go-version: '1.19.4'
go-version: "1.19.4"

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"

- name: Setup
run: make all
env:
NODE_OPTIONS: '--max-old-space-size=8192'
NODE_OPTIONS: "--max-old-space-size=8192"

- name: Configure Shared Services AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.AWS_SHARED_SERVICES_IAM_ROLE }}
role-session-name: wave-shared
aws-region: ${{ secrets.AWS_WEST_REGION }}

- name: Publish Docs
run: |
Expand All @@ -38,7 +45,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}

# Needs a sleep to wait for cloudfront cache bust.
- name: Reindex Algolia search
run: |
Expand Down

0 comments on commit 8c2cde1

Please sign in to comment.