Notebook Workflow #5
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
name: Notebook Workflow | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'Notebook/**' | |
workflow_dispatch: | |
jobs: | |
generate-notebook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Update and install prerequisites | |
run: sudo apt-get update | |
- name: Install aptitude | |
run: sudo apt-get install -y aptitude | |
- name: Install TeX Live and extra packages | |
run: sudo aptitude install -y texlive texlive-latex-extra | |
- name: Install notebook generator | |
run: npm install -g notebook-generator | |
- name: Generate PDF Notebook | |
run: notebook-generator ./Notebook --author "Mauricio Cari Leal" --size 9 --image ./.Assets/UC-Logo |