-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (38 loc) · 1.04 KB
/
build-pandoc.yml
File metadata and controls
43 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: build document with pandoc
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/openxiangshan/docs-utils:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
lang: [zh, en]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-tags: true
- name: Build PDFs
env:
HOME: /root
run: |
git config --global --add safe.directory $(pwd)
make pdf-one LANG=${{ matrix.lang }}
make pdf-one LANG=${{ matrix.lang }} TWOSIDE=1
- name: Upload built PDFs
uses: actions/upload-artifact@v4
with:
name: xiangshan-design-doc-${{ matrix.lang }}
path: |
xiangshan-design-doc-${{ matrix.lang }}.pdf
xiangshan-design-doc-twoside-${{ matrix.lang }}.pdf