-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 841 Bytes
/
Copy pathpublish.yaml
File metadata and controls
27 lines (26 loc) · 841 Bytes
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
name: Publish blog
on:
workflow_dispatch:
jobs:
publish:
name: Deploy docs
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Create jekyll dirs
run: mkdir .jekyll-cache _site
- name: Build site
run: make docker-build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GH_ACTION_IAM_ROLE_ARN }}
aws-region: us-east-1
- name: Upload assets
working-directory: _site
run: aws s3 cp . s3://${{ secrets.S3_BUCKET_NAME }}/ --recursive
- name: Invalidate CloudFront cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_ID }} --paths "/*"