-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (44 loc) · 1.17 KB
/
publish_website.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
46
47
48
49
50
51
52
name: Build and publish website
on:
push:
branches:
- main
paths:
- "www/**"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_GITHUB_ACTIONS }}
aws-region: eu-central-1
- name: Install dependencies
run: pnpm install
env:
CI: true
- name: Lint website
run: pnpm --filter www lint:ci
- name: Build website
run: pnpm build:www
- name: Deploy website
run: |
./scripts/publish_website.sh \
--s3-bucket-id "${{ vars.FIBERPLANE_COM_BUCKET_ID }}" \
--cf-distribution-id "${{ vars.FIBERPLANE_COM_CLOUDFRONT_ID }}" \
--publish-dir "./www/dist"