File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : WebSite
2
+ on :
3
+ workflow_dispatch : {}
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Set up JDK 11
15
+ uses : actions/setup-java@v2
16
+ with :
17
+ java-version : ' 11'
18
+ distribution : adopt
19
+ - name : Download tex2html with maven
20
+ run : mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:get -DremoteRepositories=central::default::https://repo.maven.apache.org/maven2,jitpack::::https://jitpack.io -DgroupId=com.github.vlsergey -DartifactId=tex2html -Dversion=master-SNAPSHOT -Dclassifier=application -Dtransitive=false -Ddest=./tex2html.jar
21
+ - name : Make tex2html executable
22
+ run : chmod +x ./tex2html.jar
23
+ - name : Checkout current branch as docs branch
24
+ run : git checkout -b docs
25
+ - name : Create docs folder
26
+ run : mkdir docs
27
+ - name : Run docs
28
+ run : ./tex2html.jar --in "./Information Security.tex" --out ./docs --format=WEBSITE
29
+ - name : Set git environment (user.name)
30
+ run : git config user.name "${{github.actor}}"
31
+ - name : Set git environment (user.email)
32
+ run : git config user.email "${{github.actor}}@users.noreply.github.com"
33
+ - name : Add docs to GIT index
34
+ run : git add ./docs/**/*
35
+ - name : Commit docs
36
+ run : git commit -m "Generate website"
37
+ - name : Update remote docs branch
38
+ run : git push origin docs:docs -f
You can’t perform that action at this time.
0 commit comments