File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' *'
7
7
8
+ env :
9
+ FILE : main
10
+
8
11
jobs :
9
12
build :
10
13
runs-on : ubuntu-latest
11
14
steps :
12
15
- name : Checkout repository
13
16
uses : actions/checkout@v1
14
17
- name : Compile
15
- run : docker run --mount src=$GITHUB_WORKSPACE/src,target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic main .tex"
18
+ run : docker run --mount src=$GITHUB_WORKSPACE/src,target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic $FILE .tex"
16
19
- name : Upload pdf
17
20
uses : actions/upload-artifact@v2
18
21
with :
19
22
name : main.zip
20
- path : src/main .pdf
23
+ path : src/* .pdf
21
24
- name : Create Release
22
25
id : create_release
23
26
uses : actions/create-release@v1
35
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
39
with :
37
40
upload_url : ${{ steps.create_release.outputs.upload_url }}
38
- asset_path : ./src/main .pdf
39
- asset_name : main .pdf
41
+ asset_path : ./src/$FILE .pdf
42
+ asset_name : $FILE .pdf
40
43
asset_content_type : application/pdf
You can’t perform that action at this time.
0 commit comments