-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 911 Bytes
/
Copy pathwebsite.yml
File metadata and controls
40 lines (30 loc) · 911 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
39
40
name: Website
on:
push:
jobs:
build-and-publish:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup
uses: ./.github/actions/setup
- name: Build Accented
run: pnpm --filter accented build
- name: Check
run: pnpm --filter website check
- name: Build website
run: pnpm website:build
- name: Install lychee
uses: ./.github/actions/installLychee
- name: Check links
run: ./packages/website/scripts/checkLinks.mjs --local
env:
GITHUB_TOKEN: ${{ secrets.LINK_CHECK_TOKEN }}
- name: Deploy website
if: github.ref == 'refs/heads/main'
run: pnpm website:deploy
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}