debian-media-box/.github/workflows/main.yml
2025-08-08 17:26:52 +08:00

37 lines
961 B
YAML

name: Compile & Publish
on:
workflow_dispatch:
push:
pull_request:
branches: [ master ]
jobs:
instruction-latex:
runs-on: ubuntu-latest
name: Compile instruction PDF
steps:
- uses: actions/checkout@v4
- name: compile (zh-Hans)
uses: dante-ev/latex-action@2024-B
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
root_file: 'instruction.tex'
compiler: xelatex
# - name: compile (zh-Hant)
# uses: dante-ev/latex-action@2024-B
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# root_file: 'instruction_zh-Hant.tex'
# compiler: xelatex
- name: upload PDF
uses: actions/upload-artifact@v4
with:
name: instruction
path: instruction*.pdf