-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.62 KB
/
github-actions-buildlatex.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
47
48
49
50
#Author: Reuben Johnston
#Description: Action to build project latex into pdf files when a release tag with formatl '*.*' is created.
name: Build LaTeX document
on:
push:
tags:
- '*.*'
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile LaTeX document 1
uses: xu-cheng/latex-action@v3
with:
root_file: curated_list_of_infamous_malware_reuben_johnston.tex
- name: Compile LaTeX document 2
uses: xu-cheng/latex-action@v3
with:
root_file: curated_list_of_infamous_attacks_reuben_johnston.tex
- name: Upload Release Asset 1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./curated_list_of_infamous_malware_reuben_johnston.pdf
asset_name: curated_list_of_infamous_malware_reuben_johnston.pdf
asset_content_type: pdf
- name: Upload Release Asset 2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./curated_list_of_infamous_attacks_reuben_johnston.pdf
asset_name: curated_list_of_infamous_attacks_reuben_johnston.pdf
asset_content_type: pdf