-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (48 loc) · 1.17 KB
/
docs.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
46
47
48
49
50
51
52
53
54
55
name: github pages
on:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
api-docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
# - windows-latest
# - macOS-latest
nim:
- '2.0.0'
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- run: nimble install -Y
- name: Setup dependencies
run: |
sudo apt update -y
sudo apt install -y libgtk-4-dev libadwaita-1-dev
- name: Build nimibook docs
run: nimble --verbose genBook
- name: Copy files
run: |
mkdir _site
cp -r compiledBook/* _site
- name: Upload site files
uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory
deploy:
environment:
name: github-pages
runs-on: ubuntu-latest
needs: api-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1