diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f49d0b9..fd9301e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -29,8 +29,9 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 - - name: Restore Cache Jupyter Environments - uses: actions/cache@v4 + - name: Restore Cache Conda Environments + id: cache-conda-restore + uses: actions/cache/restore@v4 env: CACHE_NUMBER: 0 with: @@ -47,6 +48,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Save Cache Conda Environments + id: cache-conda-save + uses: actions/cache/save@v4 + with: + path: | + ~/.local/share/jupyter/kernels + /usr/share/miniconda/envs + key: ${{ steps.cache-conda-restore.outputs.cache-primary-key }} + # - name: Cache Binder Build on mybinder.org # uses: jupyterhub/repo2docker-action@master # with: @@ -57,7 +67,7 @@ jobs: - name: Commit Files if: github.ref == 'refs/heads/main' run: | - NB_PATH=($(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '[.]ipynb$')) + NB_PATH=notebooks/01_classification.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"