Merge branch 'newVersionOfPillar' of github.com:SquareBracketAssociat… #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
workflow_call: | ||
inputs: | ||
bookname: | ||
description: 'Filename of the book to be built (e.g. mybook)' | ||
required: true | ||
type: string | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
TEXLIVE_RELEASE: '2023' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set PATH | ||
run: | | ||
echo "${{ github.workspace }}/build" >> $GITHUB_PATH | ||
echo "$HOME/texlive/bin/x86_64-linux" >> $GITHUB_PATH | ||
- name: Prepare Pillar | ||
run: | | ||
git clone https://github.com/pillar-markup/pillar.git -b v10.2.0 | ||
./pillar/scripts/build.sh | ||
- name: Prepare TeXlive | ||
run: | | ||
./_support/latex/sbabook/ci/install-texlive | ||
- name: Install SBA TeXlive Dependencies | ||
run: | | ||
tlmgr install bibtex | ||
- name: Install SBA TeXlive Dependencies | ||
run: | | ||
xargs tlmgr install < ./_support/latex/sbabook/texlive.deps | ||
- name: Install Pillar Template TeXlive Dependencies | ||
run: | | ||
xargs tlmgr install < ./_support/latex/texlive.deps | ||
- name: Build PDF | ||
run: | | ||
pillar build pdf index.* | ||
mkdir -p artifacts | ||
mv _result/pdf/index.pdf "artifacts/${{ inputs.bookname }}.pdf" | ||
- name: Continuous Release | ||
if: ${{ github.event_name == 'push' }} | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Development Build" | ||
files: | | ||
artifacts/*.pdf |