Skip to content

Commit

Permalink
generate pdf on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Aug 21, 2024
1 parent edd8913 commit 6d678e2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,48 @@ on:
run-name: Code Integration [${{ github.event_name }}][${{ github.head_ref || github.ref_name }}] rev.${{ github.sha }}

jobs:
docs-linux:
if: true
runs-on: ubuntu-latest
defaults:
run:
shell: bash

env:
GO_VERSION: 1.20.14
PANDOC_VERSION: 3.3

steps:
- uses: actions/checkout@v4
with:
clean: true
submodules: false

- name: Install Pandoc
uses: pandoc/actions/setup@{main}
with:
version: ${{ env.PANDOC_VERSION }}

- name: Install TeXlive
run: sudo apt-get update && sudo apt-get install texlive-full

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Generate PDF
run: |
cd docs/
go generate
- uses: actions/upload-artifact@v4
with:
name: qpep_user_manual
path: "docs/*.pdf"

build-linux:
if: false
runs-on: ubuntu-latest
env:
GO_VERSION: 1.20.14
Expand Down Expand Up @@ -118,6 +159,7 @@ jobs:
path: "report/*.html"

build-windows:
if: false
runs-on: windows-latest
env:
GO_VERSION: 1.20.14
Expand Down

0 comments on commit 6d678e2

Please sign in to comment.