-
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 966 Bytes
/
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
name: website
on:
workflow_dispatch:
jobs:
website:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
defaults:
run:
working-directory: ./example
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "0.4.40"
- name: Install Catppuccin CSS
run: |
gh release download v3.0.1 --pattern '*.css' --dir ./theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build mdBook
run: |
mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "book/"
- name: Deploy artifact to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4