forked from TinyTapeout/tt03-submission-template
-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (48 loc) · 1.16 KB
/
docs.yaml
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: docs
# either manually started, or on a schedule
on: [ push, workflow_dispatch ]
permissions:
contents: write
pages: write
id-token: write
jobs:
docs:
# ubuntu
runs-on: ubuntu-latest
steps:
# need the repo checked out
- name: checkout repo
uses: actions/checkout@v3
# tt tools
- name: checkout tt tools repo
uses: actions/checkout@v3
with:
repository: tinytapeout/tt-support-tools
path: tt
ref: tt03p5
# for debugging, show all the files
- name: show files
run: find .
# need python
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install -r tt/requirements.txt
# check docs
- name: build pdf
run: ./tt/tt_tool.py --check-docs
# pandoc deps
- name: Pandoc deps
run: |
sudo apt-get update -y
sudo apt-get install -y pandoc texlive-xetex
# create the pdf
- name: create pdf
run: ./tt/tt_tool.py --create-pdf
# archive the PDF
- name: Archive PDF
uses: actions/upload-artifact@v3
with:
name: PDF
path: datasheet.pdf