forked from swent-epfl/prd
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1020 Bytes
/
build_pdf.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
40
41
42
43
44
45
46
name: Build PDF from Markdown
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install pandoc and LaTeX
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y texlive-xetex
- name: Create and activate virtual environment
run: |
python -m pip install virtualenv
python -m virtualenv venv
source venv/bin/activate
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e .
- name: Generate PDF
run: |
swent_prd generate --team 4 template
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: PRD-PDF
path: Team_4_prd.pdf