-
Notifications
You must be signed in to change notification settings - Fork 8
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
4 changed files
with
53 additions
and
209 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,18 @@ | ||
name: Book generation | ||
name: Pillar >10 | ||
|
||
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: bkTemplate |
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.