-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (50 loc) · 1.26 KB
/
website.yml
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
53
name: Website
on:
push:
branches:
- main
jobs:
inject-audits:
name: Inject audits
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build:umd
- name: Inject
run: yarn tsx scripts/inject-audits-website.ts
- name: Upload website
uses: actions/upload-pages-artifact@v1
with:
path: website
deploy:
name: Deploy
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
needs: [inject-audits]
permissions:
pages: write
id-token: write
concurrency:
group: website-deploy
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pages
uses: actions/configure-pages@v3
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1