forked from Verified-zkEVM/ArkLib
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (77 loc) · 2.36 KB
/
docs.yml
File metadata and controls
88 lines (77 loc) · 2.36 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
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Build and Deploy Website to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v6
# --- Lean and Blueprint Build ---
- name: Cache Lean dependencies
uses: actions/cache@v5
with:
path: ./.lake
key: ${{ runner.os }}-lean-${{ hashFiles('lake-manifest.json') }}
restore-keys: |
${{ runner.os }}-lean-
- name: Build the project
uses: leanprover/lean-action@v1.4.0
with:
lint: false
- name: Build project documentation
run: lake build ArkLib:docs
env:
DISABLE_EQUATIONS: 1
- name: Build blueprint
uses: xu-cheng/texlive-action@v3
with:
docker_image: ghcr.io/xu-cheng/texlive-full:20231201
run: |
apk update
apk add --update make py3-pip git pkgconfig graphviz graphviz-dev gcc musl-dev
git config --global --add safe.directory $GITHUB_WORKSPACE
python3 -m venv env
source env/bin/activate
pip install --upgrade pip requests wheel
pip install pygraphviz
pip install leanblueprint
leanblueprint pdf
leanblueprint web
# --- Combine and Deploy ---
- name: Prepare deployment directory
run: |
mkdir _deploy
# Copy landing page and assets
cp -r home_page/* _deploy/
# Create docs directory and copy Lean docs
mkdir -p _deploy/docs
cp -r ./.lake/build/doc/* _deploy/docs/
# Copy blueprint
cp blueprint/print/print.pdf _deploy/blueprint.pdf
# Copy blueprint HTML
mkdir -p _deploy/blueprint
cp -r blueprint/web/* _deploy/blueprint/
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./_deploy
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4