-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Ensure documentation can be built (#702)
Currently, a pull-request on `sphinx/` or `skore/` can break documentation building and be merged without notice. --- ![image](https://github.com/user-attachments/assets/66273013-e0a3-4309-a535-7b6998650658)
- Loading branch information
1 parent
07c442d
commit f459b84
Showing
4 changed files
with
45 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Build sphinx documentation | ||
runs: | ||
using: composite | ||
steps: | ||
- working-directory: skore | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install '.[sphinx]' | ||
- working-directory: sphinx | ||
shell: bash | ||
run: make html |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Deploy sphinx documentation | ||
permissions: | ||
contents: write | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
rm -rf docs/latest | ||
mv sphinx/build/html docs/latest | ||
- shell: bash | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add docs/latest | ||
git commit -m 'docs: Build documentation triggered by ${{ github.sha }}' | ||
git push |
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
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