👁️ TJ202 has pushed a new commit! #142
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: docs | |
run-name: 👁️ ${{ github.actor }} has pushed a new commit! | |
on: [ push ] | |
# Note: this doesn't deploy anything for now! It just pushes to the gh-pages branch. | |
jobs: | |
Pages: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- name: Set up Python Poetry | |
uses: mishaga/action-poetry@1 | |
with: | |
python-version: "3.12" | |
poetry-version: "latest" | |
shell: "bash" | |
- name: Install repository with Poetry | |
run: | | |
poetry install --with docs | |
- name: Build the documentation | |
working-directory: docs | |
run: | | |
source $(poetry env info --path)/bin/activate | |
make html | |
- name: Deploy build/html to gh-pages | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs/build/html | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |