mirror of
https://github.com/moesoha/debian-media-box.git
synced 2025-09-14 03:06:45 +08:00
37 lines
961 B
YAML
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
|