Skip to content

Commit 317ab38

Browse files
committed
feat: copy manual into release pack.
fix: #156
1 parent 4d4fb55 commit 317ab38

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .github/workflows/main.yml

+27
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,43 @@ on:
66
- "*.*.*"
77

88
jobs:
9+
build:
10+
name: build bithesis manual
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: xu-cheng/texlive-action/full@v1
16+
with:
17+
run: |
18+
apk add make msttcorefonts-installer fontconfig
19+
update-ms-fonts
20+
fc-cache -f
21+
make doc
22+
- name: Upload bithesis.pdf for later usage.
23+
uses: actions/upload-artifact@v3
24+
with:
25+
name: bithesis
26+
path: bithesis.pdf
27+
28+
929
publish:
1030
name: Publish ${{ matrix.template }}
1131
runs-on: ubuntu-latest
32+
needs: build
1233

1334
strategy:
1435
matrix:
1536
template: [graduate-thesis, undergraduate-thesis, undergraduate-proposal-report, lab-report, paper-translation, presentation-slide, undergraduate-thesis-en]
1637

1738
steps:
1839
- uses: actions/checkout@v2
40+
- name: Download bithesis.pdf
41+
uses: actions/download-artifact@v3
42+
with:
43+
name: bithesis
44+
- name: Copy manual to the template folder.
45+
run: cp bithesis.pdf ./templates/${{ matrix.template }}
1946
- name: Install zip
2047
uses: montudor/action-zip@v1
2148
- name: Zip files under ./${{ matrix.template }}

0 commit comments

Comments
 (0)