-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1015 Bytes
/
workflow.yml
File metadata and controls
38 lines (33 loc) · 1015 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
28
29
30
31
32
33
34
35
36
37
38
name: Deploy to S3
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: Retype Build
uses: retypeapp/action-build@latest
id: build
with:
license: "${{ secrets.RETYPE_LICENSE_KEY }}"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy static site to S3 bucket
run: |
aws s3 sync ${{ steps.build.outputs.retype-output-path }} s3://cms-documentation \
--delete \
--acl public-read \
--cache-control "max-age=0,no-cache,no-store,must-revalidate"