change: shap_dp gets kwargs in fitting #86
Workflow file for this run
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
name: Publish documentation | |
on: | |
push: | |
tags: | |
- "v*.*" | |
jobs: | |
build-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.16 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install mkdocs mkdocstrings mkdocstrings-python mkdocs-material mkdocs-glightbox | |
- name: Build docs | |
run: | | |
cd docs | |
cp ../CHANGELOG.md ./docs/changelog.md | |
mkdocs build | |
cd .. | |
- name: Save site site as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs-site | |
path: docs/site | |
push-site: | |
name: Copy site to effector.github.io | |
needs: | |
- build-documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download the site as artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: docs-site | |
path: site | |
- name: Clone xai-effector.github.io and checkout gh-pages branch | |
uses: actions/checkout@v4 | |
with: | |
repository: xai-effector/xai-effector.github.io | |
ref: gh-pages | |
token: ${{ secrets.EFFECTOR_GITHUB_API_KEY }} | |
path: xai-effector.github.io | |
persist-credentials: false | |
- name: rm old site and copy new site | |
run: | | |
rm -rf xai-effector.github.io/* | |
cp -r site/* xai-effector.github.io | |
- name: commit and push | |
run: | | |
cd xai-effector.github.io | |
git config --global user.email "[email protected]" | |
git config --global user.name "ntipakos" | |
git add . | |
if git diff --cached --quiet; then | |
echo "No changes to commit" | |
exit 0 | |
fi | |
git commit -m "Update site from ntipakos/effector" | |
git push --force https://x-access-token:${{ secrets.EFFECTOR_GITHUB_API_KEY }}@github.com/xai-effector/xai-effector.github.io.git gh-pages |