-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: skip compiling svg when not changed
- Loading branch information
Showing
6 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Compile LaTeX files | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
compile: | ||
name: Compile LaTeX files | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/huangfusl/template:latest | ||
options: --user root | ||
steps: | ||
|
||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
fetch-depth: 1 | ||
path: '.' | ||
|
||
- name: Compile LaTeX files | ||
run: | | ||
make -f /opt/template/makefile.latex.template svg | ||
- name: Push changes | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git pull | ||
git add . | ||
git commit -m "Update svg files - [Skip GitHub Action]" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
_BUILD: | ||
python3 -m mkdocs build -d build --clean | ||
|
||
_DEPLOY: | ||
python3 -m mkdocs gh-deploy -d build --message $(shell date "+%Y-%m-%d %H:%M:%S") | ||
|
||
_CONVERT: | ||
make -f third_party/template/makefile.latex.template svg | ||
|
||
convert: _CONVERT | ||
build: _BUILD | ||
deploy: | build _DEPLOY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./docs/makefile |