Skip to content

Commit be99ecf

Browse files
authored
Workflow: Add workflow for docs upload to S3 (#2)
1 parent 5f852bc commit be99ecf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/docs-sync.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Sync docs to S3
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "docs/**"
9+
- ".github/workflows/docs-sync.yml"
10+
workflow_dispatch:
11+
12+
permissions:
13+
id-token: write
14+
contents: read
15+
16+
jobs:
17+
sync-docs:
18+
runs-on: ubuntu-24.04
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v6
23+
24+
- name: Configure AWS credentials (OIDC)
25+
uses: aws-actions/configure-aws-credentials@v6
26+
with:
27+
role-to-assume: ${{ secrets.DOCS_SYNC_AWS_ROLE_ARN }}
28+
aws-region: eu-central-1
29+
30+
- name: Sync docs folder to S3
31+
run: aws s3 sync ./docs s3://nuclia-docs-aws-global-stage-1/dotnet-sdk

0 commit comments

Comments
 (0)