Skip to content

Commit af3581f

Browse files
committed
testing api push to sandbox
1 parent c510864 commit af3581f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docs-build.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
build:
4040
name: opentrons documentation build
4141
runs-on: 'ubuntu-24.04'
42+
permissions:
43+
id-token: write
44+
contents: read
4245
steps:
4346
- uses: 'actions/checkout@v4'
4447
with:
@@ -77,3 +80,11 @@ jobs:
7780
domain: 'docs.opentrons.com'
7881
distPath: './api/docs/dist'
7982
destPrefix: ${{ env.OT_BRANCH }}
83+
- name: 'Configure AWS Credentials for docs bucket'
84+
uses: aws-actions/configure-aws-credentials@v4
85+
with:
86+
role-to-assume: ${{ secrets.DOCS_SANDBOX_ROLE }}
87+
aws-region: us-east-2
88+
- name: 'Deploy docs to sandbox.docs bucket'
89+
run: |
90+
aws s3 sync ./api/docs/dist/ s3://sandbox.docs/api/ --delete --acl public-read

0 commit comments

Comments
 (0)