forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.3 KB
/
build-and-sync-advent.yml
File metadata and controls
42 lines (33 loc) · 1.3 KB
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
40
41
42
name: Build and Sync Advent of CALM
permissions:
contents: read
on:
workflow_dispatch: {}
push:
branches: ['main']
paths: ['advent-of-calm/**']
jobs:
build-and-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version: 22
- name: Install dependencies
run: npm ci
working-directory: "advent-of-calm/website"
- name: Build website
run: npm run build
working-directory: "advent-of-calm/website"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8 # v5
with:
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Sync to S3
run: |
aws s3 sync dist s3://${{ vars.AWS_S3_BUCKET }}/advent/ --delete
working-directory: "advent-of-calm/website"