Skip to content

Commit 350aa58

Browse files
committed
Generate LaTeX manual during build and publish as release artifact
Closes #3
1 parent b629751 commit 350aa58

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ on:
77
type: string
88

99
jobs:
10+
generate-manual-pdf:
11+
if: ${{ inputs.target == 'manual-pdf' || inputs.target == 'all' }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install TeX Dependencies
18+
run: |
19+
sudo apt update
20+
sudo apt install -y latex-make texlive-latex-base texlive-lang-portuguese
21+
22+
- name: Generate PDF from manual.tex
23+
run: |
24+
pdflatex -interaction=nonstopmode -output-directory=doc doc/manual/manual.tex
25+
26+
- name: Upload PDF Artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: manual-pdf
30+
path: doc/manual.pdf
31+
1032
build-linux:
1133
if: ${{ inputs.target == 'linux' || inputs.target == 'all' }}
1234
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
name: gpt-linux
2424
path: release/linux
2525

26+
- uses: actions/download-artifact@v4
27+
with:
28+
name: manual-pdf
29+
path: release/manual
30+
2631
- name: Repack Windows zip
2732
run: |
2833
cd release
@@ -45,6 +50,7 @@ jobs:
4550
files: |
4651
release/gpt-win-x86_64.zip
4752
release/gpt-linux-x86_64.tar.gz
53+
release/manual/manual.pdf
4854
4955
env:
5056
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}

HACKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Documentação na pasta [doc](doc) e o manual (LaTeX) em [doc/manual](doc/manual
193193
### Instalar dependências no Debian/Ubuntu
194194

195195
```shell
196-
sudo apt install -y latex-make texlive-latex-base latex2html
196+
sudo apt install -y latex-make texlive-latex-base texlive-lang-portuguese latex2html
197197
```
198198

199199
### Compilar o manual

0 commit comments

Comments
 (0)