-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
395 additions
and
143 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,18 @@ | ||
name: Book generation | ||
name: Book with Pillar | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare Pillar | ||
run: | | ||
git clone https://github.com/pillar-markup/pillar.git -b v8.0.12 | ||
export PATH="$HOME/texlive/bin/x86_64-linux:$PWD/build:$PATH" | ||
./pillar/scripts/ci/install-texlive | ||
./_support/latex/ensure-deps.sh | ||
./pillar/scripts/build.sh | ||
- name: Build PDF | ||
run: | | ||
echo $PATH | ||
export PATH="$HOME/texlive/bin/x86_64-linux:$PWD/build:$PATH" | ||
echo $PATH | ||
pillar build pdf | ||
mv _result/pdf/index.pdf _result/pdf/PBE9-wip.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: "Save PDF" | ||
files: | | ||
_result/pdf/*.pdf | ||
- name: Build HTML | ||
run: | | ||
export PATH="$HOME/texlive/bin/x86_64-linux:$PWD/build:$PATH" | ||
pillar build html | ||
ls -R _result/ | ||
uses: SquareBracketAssociates/BookBuilderDashboard/.github/workflows/main.yml@newVersionOfPillar | ||
with: | ||
bookname: PharoByExample90 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
kind: pipeline | ||
type: docker | ||
name: TeXlive | ||
|
||
steps: | ||
- name: build | ||
image: texlive/texlive | ||
commands: | ||
- tlmgr option repository https://ctan.gutenberg-asso.fr/systems/texlive/tlnet | ||
- tlmgr update --self --all | ||
- latexmk sbabook | ||
- latexmk sbabook.bod | ||
- latexmk sbabook.spiral | ||
|
||
- name: build log | ||
image: alpine | ||
commands: | ||
- cat sbabook.log | ||
- cat sbabook.bod.log | ||
- cat sbabook.spiral.log | ||
when: | ||
status: [failure, success] | ||
|
||
--- | ||
kind: pipeline | ||
type: docker | ||
name: minimal TeXlive | ||
|
||
steps: | ||
- name: build | ||
image: texlive/texlive:latest-minimal | ||
pull: always | ||
commands: | ||
- tlmgr option repository https://ctan.gutenberg-asso.fr/systems/texlive/tlnet | ||
- tlmgr update --self --all | ||
- tlmgr install latex-bin latexmk | ||
- xargs tlmgr install < texlive.deps | ||
- tlmgr path add | ||
- latexmk sbabook | ||
- latexmk sbabook.bod | ||
- latexmk sbabook.spiral | ||
|
||
- name: build log | ||
image: alpine | ||
commands: | ||
- cat sbabook.log | ||
- cat sbabook.bod.log | ||
- cat sbabook.spiral.log | ||
when: | ||
status: [failure, success] | ||
|
||
--- | ||
kind: pipeline | ||
type: docker | ||
name: Ubuntu + TeXlive 2023 | ||
|
||
environment: | ||
TEXLIVE_RELEASE: 2023 | ||
|
||
steps: | ||
- name: build | ||
image: ubuntu | ||
commands: | ||
- apt update && apt install -y curl perl | ||
- export PATH=$HOME/texlive/bin/x86_64-linux:$HOME/texlive/bin/aarch64-linux:$PATH | ||
- ./ci/install-texlive | ||
- xargs tlmgr install < texlive-2023.deps | ||
- latexmk sbabook | ||
- latexmk sbabook.bod | ||
- latexmk sbabook.spiral | ||
|
||
- name: build log | ||
image: alpine | ||
commands: | ||
- cat sbabook.log | ||
- cat sbabook.bod.log | ||
- cat sbabook.spiral.log | ||
when: | ||
status: [failure, success] | ||
|
||
--- | ||
kind: pipeline | ||
type: docker | ||
name: Ubuntu + TeXlive rolling | ||
|
||
environment: | ||
TEXLIVE_RELEASE: rolling | ||
|
||
steps: | ||
- name: build | ||
image: ubuntu | ||
commands: | ||
- apt update && apt install -y curl perl | ||
- export PATH=$HOME/texlive/bin/x86_64-linux:$HOME/texlive/bin/aarch64-linux:$PATH | ||
- ./ci/install-texlive | ||
- xargs tlmgr install < texlive.deps | ||
- latexmk sbabook | ||
- latexmk sbabook.bod | ||
- latexmk sbabook.spiral | ||
|
||
- name: build log | ||
image: alpine | ||
commands: | ||
- cat sbabook.log | ||
- cat sbabook.bod.log | ||
- cat sbabook.spiral.log | ||
when: | ||
status: [failure, success] |
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.