mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
Use reusable workflow
This commit is contained in:
parent
53b8d48bd3
commit
b46a30b33a
2 changed files with 29 additions and 11 deletions
23
.github/workflows/call-deploy-book.yml
vendored
Normal file
23
.github/workflows/call-deploy-book.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: call-deploy-book
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
# If your git repository has the Jupyter Book within some-subfolder next to
|
||||||
|
# unrelated files, you can make this run only if a file within that specific
|
||||||
|
# folder has been modified.
|
||||||
|
#
|
||||||
|
# paths:
|
||||||
|
# - some-subfolder/**
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-workflow:
|
||||||
|
uses: TeachBooks/template/.github/workflows/deploy-book-ghpages.yml@main
|
||||||
|
secrets: inherit
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
17
.github/workflows/deploy-book-ghpages.yml
vendored
17
.github/workflows/deploy-book-ghpages.yml
vendored
|
|
@ -3,18 +3,13 @@ name: deploy-book
|
||||||
# Based on:
|
# Based on:
|
||||||
# https://jupyterbook.org/en/stable/publish/gh-pages.html
|
# https://jupyterbook.org/en/stable/publish/gh-pages.html
|
||||||
|
|
||||||
# Run on a push to any branch, then deploy books from all branches.
|
# NOTE to template users:
|
||||||
|
# You should not need to edit this file. This is not the workflow file that is being run on every push.
|
||||||
|
# Instead, on every push workflow `call-deploy-book` calls the `deploy-book` workflow at the original template repository:
|
||||||
|
# https://github.com/TeachBooks/template
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
# If your git repository has the Jupyter Book within some-subfolder next to
|
|
||||||
# unrelated files, you can make this run only if a file within that specific
|
|
||||||
# folder has been modified.
|
|
||||||
#
|
|
||||||
# paths:
|
|
||||||
# - some-subfolder/**
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# Inherit configuration variables in the environment, or assign default values.
|
# Inherit configuration variables in the environment, or assign default values.
|
||||||
# Configuration variables may be set as explained here:
|
# Configuration variables may be set as explained here:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue