-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 952 Bytes
/
cd.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
name: Build and Deploy
on:
push:
branches:
- 'master'
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-22.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '20'
- uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.10
- name: Install Dependencies
run: pnpm i
- name: Run Tests
run: pnpm test
- name: Build
run: pnpm run build
# Here I run lints after build due to:
# https://github.com/unplugin/unplugin-auto-import/issues/288
- name: Run Lints
run: pnpm run lint
- name: Copy `CNAME` file
run: cp CNAME dist/CNAME
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: page
folder: dist
single-commit: true