-
Notifications
You must be signed in to change notification settings - Fork 72
38 lines (33 loc) · 948 Bytes
/
tex.yml
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
name: LaTeX Document
on:
workflow_dispatch:
push:
paths-ignore:
- "**.md"
- "latexindent.yaml"
pull_request:
paths-ignore:
- "**.md"
- "latexindent.yaml"
jobs:
build:
name: Build document
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/islandoftex/images/texlive:TL2023-historic
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
id: build
working-directory: ${{ github.workspace }}
run: |
git config --system --add safe.directory $(pwd -P)
echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
make gh-actions
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: LALU-build-${{ github.run_number }}-${{ steps.build.outputs.sha }}
if-no-files-found: error
path: ${{ github.workspace }}/讲义/*.pdf