-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.09 KB
/
cd.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
40
41
42
43
44
45
name: Continuous Delivery
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: build website
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: dist-www
path: dist/www
retention-days: 15
deploy:
needs: build
name: deploy website
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist-www
path: www
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::865116139480:role/github-actions-limulus-penumbra
aws-region: us-west-2
- run: aws s3 sync www s3://limulus-net-penumbra --delete --cache-control max-age=60,public