forked from sophgo/sophgo-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 892 Bytes
/
trm.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
name: build-trm
on:
push:
schedule:
- cron: "0 2 * * *"
pull_request:
workflow_dispatch:
jobs:
build-trm:
runs-on: ubuntu-latest
steps:
- name: "Update APT sources && Install Deps"
run: |
sudo apt update
sudo apt install -y python3-sphinx texlive-latex-recommended texlive-latex-extra latexmk
- uses: actions/checkout@v3
- name: "Compile TRM"
run: |
build_tiemstamp=$(date "+%Y%m%d%H%M")
cd SG2042/TRM && make latexpdf
cp -av build/latex/sg2042technicalreferencemanual.pdf \
${GITHUB_WORKSPACE}/SG2042TechnicalReferenceManual_${build_tiemstamp}.pdf
- name: "Upload TRM Artifact"
uses: actions/upload-artifact@v3
with:
name: SG2042TechnicalReferenceManual
path: SG2042TechnicalReferenceManual_*.pdf
retention-days: 60