Skip to content

Commit 38807f6

Browse files
committed
ci: Add workflow to deploy website
1 parent 14c2b71 commit 38807f6

14 files changed

+55
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# see also:
2+
# https://github.com/actions/upload-pages-artifact
3+
# https://github.com/actions/deploy-pages
4+
# https://github.com/actions/starter-workflows/blob/main/pages/mdbook.yml
5+
6+
name: Build & Maybe Deploy
7+
8+
on:
9+
push:
10+
branches: [main]
11+
pull_request:
12+
branches: [main]
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
build-maybe-deploy:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Install mdBook
31+
run: |
32+
cargo install mdbook
33+
cargo install mdbook-katex
34+
cargo install mdbook-linkcheck
35+
36+
- name: Fetch Triton VM repository
37+
uses: actions/checkout@v4
38+
with:
39+
repository: TritonVM/triton-vm
40+
path: triton-vm
41+
42+
- name: Build Triton VM specification
43+
run: |
44+
mdbook build triton-vm/specification
45+
mkdir -p ./spec
46+
mv triton-vm/specification/book/html/* ./spec/
47+
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
50+
with:
51+
path: .
52+
53+
- name: Deploy to GitHub Pages
54+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
55+
uses: actions/deploy-pages@v4

Makefile

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)