-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (53 loc) 路 1.59 KB
/
Copy pathdocs.yml
File metadata and controls
65 lines (53 loc) 路 1.59 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
54
55
56
57
58
59
60
61
62
63
64
65
name: Deploy documentation
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pages: write # To push to a GitHub Pages site
id-token: write # To update the deployment status
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Store version in environment
run: |
TAG=$(git describe --tags --always --abbrev=0)
echo "CY_VERSION=${TAG:1}" >> $GITHUB_ENV
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Install npm dependencies
run: cd docs && npm ci
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.24"
- name: Install agg
run: |
AGG_VERSION="v1.7.0"
curl -L -o /usr/local/bin/agg \
"https://github.com/asciinema/agg/releases/download/${AGG_VERSION}/agg-x86_64-unknown-linux-gnu"
chmod +x /usr/local/bin/agg
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -qqy vim htop just
- name: Build Docusaurus site
run: just docs-build-assets
- name: Setup pages
uses: actions/configure-pages@v2
- name: Upload site
uses: actions/upload-pages-artifact@v3
with:
path: "docs/build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4