This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00fdbf8
commit ec93f54
Showing
1 changed file
with
7 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ name: Quarto Publish | |
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout Quarto Book | ||
uses: actions/checkout@v4 | ||
|
@@ -25,14 +25,14 @@ jobs: | |
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: Restore Cache Jupyter Kernels | ||
id: cache-jupyter-kernels-restore | ||
uses: actions/cache/restore@v4 | ||
- name: Restore Cache Jupyter Environments | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.local/share/jupyter/kernels | ||
/usr/share/miniconda/envs | ||
key: ${{ runner.os }}-jupyter-${{ hashFiles('chapters/*.yml') }} | ||
restore-keys: ${{ runner.os }}-jupyter- | ||
|
||
- name: Render and Publish | ||
id: setup-python | ||
|
@@ -42,15 +42,6 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Cache Jupyter Kernels | ||
id: cache-jupyter-kernels-save | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
~/.local/share/jupyter/kernels | ||
/usr/share/miniconda/envs | ||
key: ${{ steps.cache-jupyter-kernels-restore.outputs.cache-primary-key }} | ||
|
||
# - name: Cache Binder Build on mybinder.org | ||
# uses: jupyterhub/repo2docker-action@master | ||
# with: | ||
|
@@ -62,8 +53,8 @@ jobs: | |
if: github.ref == 'refs/heads/main' | ||
run: | | ||
NB_PATH=($(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '[.]ipynb$')) | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit ${NB_PATH[*]} -m "Quarto output" || echo "No changes to commit" | ||
- name: Push Commit | ||
|