diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4a0bbdc..5769c0c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -66,7 +66,7 @@ jobs: # REPO2DOCKER_EXTRA_ARGS: --subdir notebooks - name: Commit Files Quarto Book - if: github.ref == 'refs/heads/main' | github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/main' run: | NB_PATH=./notebooks/*.ipynb git config --local user.name "$GITHUB_ACTOR" @@ -75,7 +75,7 @@ jobs: git push origin || echo "No changes to commit" - name: Commit Files Pythia Book - if: github.ref == 'refs/heads/main' | github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/main' run: | python src/render_sfinx_toc.py cp ./_toc.yml ./pythia/ @@ -88,3 +88,26 @@ jobs: git commit -m "Quarto output" || echo "No changes to commit" git push origin || echo "No changes to commit" + - name: Commit Files Quarto Book Branch dev + if: github.ref == 'refs/heads/dev' + run: | + NB_PATH=./notebooks/*.ipynb + git config --local user.name "$GITHUB_ACTOR" + git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" + git commit ${NB_PATH[*]} -m "Quarto output" || echo "No changes to commit" + git push origin dev || echo "No changes to commit" + + - name: Commit Files Pythia Book Branch dev + if: github.ref == 'refs/heads/dev' + run: | + python src/render_sfinx_toc.py + cp ./_toc.yml ./pythia/ + cp ./Makefile ./pythia/ + cp -R ./notebooks/. ./pythia/notebooks/ + cd ./pythia + git config --local user.name "$GITHUB_ACTOR" + git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" + git add . + git commit -m "Quarto output" || echo "No changes to commit" + git push origin dev || echo "No changes to commit" +