Skip to content

EnsembleSpaces: added example about finitely supported distributions #37

EnsembleSpaces: added example about finitely supported distributions

EnsembleSpaces: added example about finitely supported distributions #37

Workflow file for this run

name: Build book
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-book:
runs-on: ubuntu-latest
steps:
- name: Set up book repository
uses: actions/checkout@v6
with:
path: book
- name: Compile book
uses: xu-cheng/latex-action@v4
with:
working_directory: book
root_file: book.tex
- name: Upload to autogen repository
run: |
# Output the directory contents for debugging
ls -l book
# Clone autogen repository
git clone https://gcarcassi:${{ secrets.AUTOGEN_TOKEN }}@github.com/assumptionsofphysics/autogen autogen
cd autogen
# Moves the file
mv ../book/book.pdf AssumptionsOfPhysicsDraft.pdf
ls -l
git add AssumptionsOfPhysicsDraft.pdf
# Commit and push only if there were changes
if ! git diff --cached --quiet; then
git config user.name "gcarcassi[bot]"
git config user.email "gabriele.carcassi@gmail.com"
git pull
git commit -m "Updating book draft"
git push
else
echo "No changes to commit."
fi