Skip to content

Commit

Permalink
feat: copy manual into release pack.
Browse files Browse the repository at this point in the history
fix: #156
  • Loading branch information
fky2015 committed Aug 13, 2022
1 parent 4d4fb55 commit 317ab38
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,43 @@ on:
- "*.*.*"

jobs:
build:
name: build bithesis manual
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add make msttcorefonts-installer fontconfig
update-ms-fonts
fc-cache -f
make doc
- name: Upload bithesis.pdf for later usage.
uses: actions/upload-artifact@v3
with:
name: bithesis
path: bithesis.pdf


publish:
name: Publish ${{ matrix.template }}
runs-on: ubuntu-latest
needs: build

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

steps:
- uses: actions/checkout@v2
- name: Download bithesis.pdf
uses: actions/download-artifact@v3
with:
name: bithesis
- name: Copy manual to the template folder.
run: cp bithesis.pdf ./templates/${{ matrix.template }}
- name: Install zip
uses: montudor/action-zip@v1
- name: Zip files under ./${{ matrix.template }}
Expand Down

0 comments on commit 317ab38

Please sign in to comment.