update scripts to test and create notebook/readme #184
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: Generate Notebook and README | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
notebook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Create Notebook | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: mateusvrs/cp-notebook:v1.0 # Thank you mateusvrs | |
options: -w /usr/src/app -v ${{ github.workspace }}:/usr/src/app | |
run: sudo apt-get update && sudo apt-get install -y texlive-full && make notebook readme | |
- name: Notebook Update - Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: "notebook.pdf" | |
commit_message: "updates notebok" | |
- name: README Update - Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: "README.md" | |
commit_message: "update README to match with notebook" |