-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.17 KB
/
publish.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
name: Publish PDF
on:
release:
types: ["published"]
jobs:
publish-pdf:
name: publish-pdf
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Setup Chrome/Chromium web browser
uses: browser-actions/setup-chrome@v1
with:
chrome-version: latest
id: setup-chrome
- name: Building tutorial PDF file
run: |
jupyter-book build ./ --builder singlehtml
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
${{ steps.setup-chrome.outputs.chrome-path }} --headless --disable-gpu --print-to-pdf file:///$(pwd)/_build/singlehtml/intro.html
- name: Upload PDF to release
uses: svenstaro/upload-release-action@v2
with:
asset_name: Sylabs_Singularity101-${{ github.ref_name }}.pdf
#tag: "PDF"
tag: ${{ github.ref }}
overwrite: true
file: output.pdf