Skip to content

Commit

Permalink
ci: 发布快速使用手册
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed May 7, 2024
1 parent 2b0d3f3 commit 2f6bf7e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
with:
name: bithesis
path: bithesis.pdf
- name: Upload handbooks for later usage.
uses: actions/upload-artifact@v4
with:
name: handbooks
path: "the-graduates-handbook/*.pdf"
- name: Upload *.cls for later usage.
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -115,7 +120,7 @@ jobs:
tag: ${{ github.ref }}

release_notes:
name: Populate release notes with latest changelog
name: Populate release notes with latest changelog and PDFs
runs-on: ubuntu-latest
# Makesure it's the last job.
needs: [build, publish_cls, publish_templates]
Expand All @@ -138,12 +143,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
- name: Download PDF(s)

- name: Download bithesis.pdf
uses: actions/download-artifact@v4
with:
name: bithesis

- name: Upload the releases notes
- name: Upload bithesis.pdf and changelog
uses: svenstaro/upload-release-action@v2
with:
file: bithesis.pdf
Expand All @@ -153,6 +158,24 @@ jobs:
body: |
${{ steps.git-cliff.outputs.content }}
- name: Download handbooks
uses: actions/download-artifact@v4
with:
name: handbooks
path: the-graduates-handbook
- name: Upload undergraduate-handbook
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: the-graduates-handbook/undergraduate-handbook.pdf
tag: ${{ github.ref }}
- name: Upload graduate-handbook
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: the-graduates-handbook/graduate-handbook.pdf
tag: ${{ github.ref }}

upload_to_ctan:
name: Upload to CTAN
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ test: doc copy FORCE_MAKE
cd $(SCAFFOLDDIR)/presentation-slide && latexmk && cd ..
cd $(TESTDIR)/doctor-thesis && latexmk && cd ..
cd $(TESTDIR)/autorefs && latexmk && cd ..
cd ./the-graduates-handbook && latexmk && cd ..
cd ./the-graduates-handbook && latexmk && latexmk -c \
&& GRADUATE=true latexmk && cd ..

regression-test: cls
$(REGRESSION_TEST_COMMAND)
Expand Down
1 change: 1 addition & 0 deletions bithesis.luabridge.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local ran_ok,err=pcall(function()local ran_ok,kpse=pcall(require, "kpse")if ran_ok then kpse.set_program_name("luatex")end assert(load("print(os.getenv(\"TEXMF_OUTPUT_DIRECTORY\")or\".\")"))()end)if not ran_ok then local file=io.open("./bithesis.luabridge.err","w")if file then file:write(err.."\n")file:close()end print('\\begingroup\\ExplSyntaxOn\\csname msg_error:nnvv\\endcsname{luabridge}{failed-to-execute}{g_luabridge_output_dirname_str}{g_luabridge_error_output_filename_str}\\endgroup')end

0 comments on commit 2f6bf7e

Please sign in to comment.