-
Notifications
You must be signed in to change notification settings - Fork 2
75 lines (62 loc) · 1.73 KB
/
docs.yml
File metadata and controls
75 lines (62 loc) · 1.73 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
66
67
68
69
70
71
72
73
74
75
name: Deploy Docs
on: [push, workflow_dispatch]
jobs:
build-docs:
strategy:
matrix:
os: [ubuntu-24.04]
racket-variant: ['CS']
racket-version: ['9.0']
runs-on: ${{ matrix.os }}
name: Build and deploy docs
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install Racket
uses: Bogdanp/setup-racket@v1.14
with:
architecture: 'x64'
distribution: 'full'
variant: ${{ matrix.racket-variant }}
version: ${{ matrix.racket-version }}
- name: Install clang
run: |
sudo apt install -y clang libssl-dev
- name: Install pandoc
run: |
curl -Ls https://github.com/jgm/pandoc/releases/download/2.11.2/pandoc-2.11.2-1-amd64.deb -o pandoc.deb
sudo dpkg -i pandoc.deb
- name: Version info
run: |
clang --version
gcc --version
- name: Install a86 package
run: |
raco pkg install --no-docs ../a86/
- name: Render documentation
run: |
find . -name '*scrbl'
raco scribble --htmls \
++xref-in setup/xref load-collections-xref \
--redirect-main http://docs.racket-lang.org/ \
--dest out/ \
a86/scribblings/a86.scrbl
- name: Archive documentation
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: out/a86
deploy:
needs: build-docs
runs-on: ubuntu-24.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4