-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.2 KB
/
notebook.yml
File metadata and controls
48 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@mc-cari.github.io'
- name: Commit and Push Changes
run: |
git add .
git commit -m "Update generated notebook" || true
git push