-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.26 KB
/
Copy pathdeploy.yml
File metadata and controls
53 lines (42 loc) · 1.26 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
43
44
45
46
47
48
49
50
51
52
53
name: Build, verify and deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
# Formatting and type-checking run here rather than in a workflow of their
# own: they need exactly the install this job has already done.
- name: Check formatting
run: npx prettier . --check
- name: Type-check
run: npx astro check
- name: Build
run: npm run build
# URL parity, byte-identity of the published PDFs and images, and the
# structural/feature audits. Runs before the deploy step, so a regression
# fails the workflow instead of reaching ardoco.de.
- name: Verify
run: npm run verify
- name: Deploy to gh-pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
clean: true