-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (30 loc) · 990 Bytes
/
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
name: Make pdf for every release
on:
push:
tags:
- release/*
jobs:
convert_to_pdf:
runs-on: ubuntu-20.04
steps:
- name: Check out markdown
uses: actions/checkout@v2
- name: Create files list
id: files_list
run: |
mkdir output
echo "::set-output name=files::README.md"
- name: Get release version
id: release_version
run: |
echo "::set-output name=release_version::$(echo ${{ github.ref }} | cut --delimiter=/ -f4)"
- name: Convert to pdf
uses: docker://pandoc/latex:2.14.2
with:
args: >-
--output=output/gtf-${{ steps.release_version.outputs.release_version }}.pdf
${{ steps.files_list.outputs.files }}
- uses: actions/[email protected]
with:
name: gtf-${{ steps.release_version.outputs.release_version }}.pdf
path: output/gtf-${{ steps.release_version.outputs.release_version }}.pdf