Skip to content

build jupyter book #186

build jupyter book

build jupyter book #186

Workflow file for this run

name: on-push
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changed notebooks
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**.ipynb
- name: Install jupyter-book
uses: mamba-org/setup-micromamba@v1
with:
create-args: >-
jupyter-book
- name: Checkout book repo
uses: actions/checkout@v4
with:
repository: ecmwf-projects/c3s_eqc_book_main
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done