-
-
Notifications
You must be signed in to change notification settings - Fork 13
61 lines (54 loc) · 1.47 KB
/
build.yml
File metadata and controls
61 lines (54 loc) · 1.47 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
# A workflow to create the Cyphal Specification PDF
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
name: Build PDF file using LaTeX
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run texer container
uses: docker://ghcr.io/opencyphal/texer:te22.4.1
with:
entrypoint: /bin/bash
args: >
-c "
git config --global --add safe.directory '*' &&
pip install -U setuptools &&
pip install -r requirements.txt &&
./compile.sh
"
- name: Upload pdf as an artifact
uses: actions/upload-artifact@v4
with:
name: Cyphal Specification
path: specification/Cyphal_Specification.pdf
if-no-files-found: error
- name: Upload diagnostic snapshot
uses: actions/upload-artifact@v4
if: always()
with:
name: workspace-${{github.job}}
path: '*'
retention-days: 3
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: specification/
deploy:
environment:
name: github-pages
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}