Skip to content

Commit ccc7388

Browse files
committed
Publish GitHub Page with GitHub Action
Add a new Github Action to publish to the GitHub page. Use https://github.com/TeXtw/docker-lkmpg image for reproducibility.
1 parent 749f039 commit ccc7388

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: build-deploy-github-page
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container: twtug/lkmpg
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Build
17+
run: |
18+
make html
19+
- name: Deploy to gh-pages branch
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./html
24+
publish_branch: gh-pages

.github/workflows/generate_pdf.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,29 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
container: texlive/texlive
12+
container: twtug/lkmpg
1313

1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Build
17-
run: make all
17+
run: |
18+
make all
19+
make html
20+
tar zcvf lkmpg-html.tar.gz ./html
1821
- name: Delete old release asset
1922
uses: mknejp/delete-release-assets@v1
2023
with:
2124
token: ${{ github.token }}
2225
fail-if-no-assets: false
2326
tag: latest
24-
assets: lkmpg.pdf
27+
assets: |
28+
lkmpg.pdf
29+
lkmpg-html.tar.gz
2530
- name: Release
2631
uses: softprops/action-gh-release@v1
2732
with:
28-
files: lkmpg.pdf
33+
files: |
34+
lkmpg.pdf
35+
lkmpg-html.tar.gz
2936
tag_name: "latest"
3037
prerelease: true

0 commit comments

Comments
 (0)