-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 995 Bytes
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Docs
on:
pull_request:
branches:
- main
paths:
- .github/workflows/docs.yml
- 'docs/**'
push:
branches:
- main
paths:
- .github/workflows/docs.yml
- 'docs/**'
jobs:
docs:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build
run: make docs
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_IAM_ROLE }}
aws-region: ${{ vars.AWS_REGION }}
- name: Sync S3 bucket
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: aws s3 sync ./site/ s3://${{ vars.AWS_S3_BUCKET_NAME }} --delete