Skip to content

Commit

Permalink
using correct yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Sep 3, 2024
1 parent cdea835 commit 7b65122
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 209 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/centralized.yml

This file was deleted.

50 changes: 8 additions & 42 deletions .github/workflows/main.yml
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
70 changes: 45 additions & 25 deletions _support/templates/latex/main.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
\documentclass[10pt,twoside,english]{_support/latex/sbabook/sbabook}
\let\wholebook=\relax

%\usepackage{amsmath}
\usepackage{import}
\subimport{_support/latex/}{common.tex}

Expand Down Expand Up @@ -45,56 +44,77 @@
\cleartoverso
{\small

Copyright 2023 by «& attribution».
Copyright 2021 by «& attribution».

The contents of this book are protected under the Creative Commons
Attribution-NonCommercial-NoDerivs
CC BY-NC-ND\\
You are free to:
\begin{description}
\item Share --- copy and redistribute the material in any medium or format
\end{description}

The licensor cannot revoke these freedoms as long as you follow the license terms.
Attribution-ShareAlike 3.0 Unported license.

You are \textbf{free}:
\begin{itemize}
\item to \textbf{Share}: to copy, distribute and transmit the work,
\item to \textbf{Remix}: to adapt the work,
\end{itemize}

Under the following conditions:
\begin{description}
\item[Attribution.] --- You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
\item[NonCommercial.] --- You may not use the material for commercial purposes.
\item [NoDerivatives.] --- If you remix, transform, or build upon the material, you may not distribute the modified material.
\item [No additional restrictions.] --- You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
\item[Attribution.] You must attribute the work in the manner specified by the
author or licensor (but not in any way that suggests that they endorse you
or your use of the work).
\item[Share Alike.] If you alter, transform, or build upon this work, you may
distribute the resulting work only under the same, similar or a compatible
license.
\end{description}

\url{https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode}
For any reuse or distribution, you must make clear to others the
license terms of this work. The best way to do this is with a link to
this web page: \\
\url{http://creativecommons.org/licenses/by-sa/3.0/}

Any of the above conditions can be waived if you get permission from
the copyright holder. Nothing in this license impairs or restricts the
author's moral rights.
Any of the above conditions can be waived if you get permission from
the copyright holder. Nothing in this license impairs or restricts the
author's moral rights.

\begin{center}
\includegraphics[width=0.2\textwidth]{_support/latex/CreativeCommons-BYNOCND.pdf}
\end{center}
\begin{center}
\includegraphics[width=0.2\textwidth]{_support/latex/sbabook/CreativeCommons-BY-SA.pdf}
\end{center}

Your fair dealing and other rights are in no way affected by the
above. This is a human-readable summary of the Legal Code (the full
license): \\
\url{http://creativecommons.org/licenses/by-sa/3.0/legalcode}

\vfill
Keepers of the lighthouse\\


Keepers of the lighthouse\\
Édition : BoD - Books on Demand,\\
12/14 rond-point des Champs-Élysées,75008 Paris\\
Impression : Books on Demand GmbH, Norderstedt, Allemagne\\
ISBN: XXXXXXXXXXXXXXX\\
Dépôt légal : Month/YEAR\\
ISBN: 9782322394104\\
Dépôt légal : 4/2022\\
Layout and typography based on the \textcode{sbabook} \LaTeX{} class by Damien Pollet.

% Publication info would go here (publisher, ISBN, cover design…)
Layout and typography based on the \textcode{sbabook} \LaTeX{} class by Damien
Pollet.\\
Cover photo by Joseph Guégan
}


\frontmatter
\pagestyle{plain}

\tableofcontents*
%\clearpage\listoffigures
\clearpage\listoffigures

\mainmatter

«& content»


%\bibliographystyle{alpha}
%\bibliography{«& bibFile»}

% lulu requires an empty page at the end. That's why I'm using
% \backmatter here.
\backmatter
Expand Down
124 changes: 0 additions & 124 deletions _support/templates/latex/mainold2.mustache

This file was deleted.

0 comments on commit 7b65122

Please sign in to comment.