-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (44 loc) · 1.24 KB
/
pages.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
53
54
55
56
57
58
59
name: Deploy to Github Pages
on:
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: 🧰 Install dependencies
run: pnpm install --frozen-lockfile
- name: 🔨 Build demo app
run: pnpm run build
- name: 📄 Build types documentation
run: pnpm run typedoc
- name: 🌐 Configure Github Pages domain
run: echo "svelte-admin-demo.orbitale.io" > build/CNAME
- name: 🚀 Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build