File tree 2 files changed +35
-4
lines changed
2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
- container : texlive/texlive
12
+ container : twtug/lkmpg
13
13
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
- name : Build
17
- run : make all
17
+ run : |
18
+ make all
19
+ make html
20
+ tar zcvf lkmpg-html.tar.gz ./html
18
21
- name : Delete old release asset
19
22
uses : mknejp/delete-release-assets@v1
20
23
with :
21
24
token : ${{ github.token }}
22
25
fail-if-no-assets : false
23
26
tag : latest
24
- assets : lkmpg.pdf
27
+ assets : |
28
+ lkmpg.pdf
29
+ lkmpg-html.tar.gz
25
30
- name : Release
26
31
uses : softprops/action-gh-release@v1
27
32
with :
28
- files : lkmpg.pdf
33
+ files : |
34
+ lkmpg.pdf
35
+ lkmpg-html.tar.gz
29
36
tag_name : " latest"
30
37
prerelease : true
You can’t perform that action at this time.
0 commit comments