-
Notifications
You must be signed in to change notification settings - Fork 38
39 lines (38 loc) · 1.24 KB
/
working_draft.yml
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
name: generate_draft_spec
on:
push:
branches:
- "*"
- "!main"
- "!candidate_release"
jobs:
# The job that will use the container image you just pushed to ghcr.io
gen_pdf:
runs-on: ubuntu-20.04
container:
image: pandoc/extra:latest-ubuntu
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install prequirements
shell: bash
run: |
/usr/bin/apt-get -y update
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y make
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb
/usr/bin/pip3 install --break-system-packages -r requirements.txt
- name: Build PDF
shell: bash
working-directory: ./specification
run: |
make STYLE=working_draft
- name: Upload Spec
uses: actions/[email protected]
with:
name: FOCUS_specification
path: |
specification/spec.html
specification/spec.pdf
specification/images/*
specification/styles/*