Skip to content

Commit

Permalink
add: automatic compilation function when pushing to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei00764 committed Nov 11, 2024
1 parent 64c7800 commit 6bd84fd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 172 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build the project

on:
push:
branches: [ "master" ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
packages: scheme-medium

- run: DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hans~~~und-HANS~0.0.1.0
- run: DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hant~~~und-HANT~0.0.1.0
- run: latexmk -pdf -pdflatex=xelatex main.tex
- run: biber main
- run: latexmk -f -pdf -pdflatex=xelatex -interaction=nonstopmode main.tex
- run: latexmk -c

- uses: actions/upload-artifact@v3
with:
name: thesis pdf
path: main.pdf
51 changes: 0 additions & 51 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

121 changes: 0 additions & 121 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit 6bd84fd

Please sign in to comment.