Skip to content

remove abs addition on file handler + makedirs #53

remove abs addition on file handler + makedirs

remove abs addition on file handler + makedirs #53

Workflow file for this run

name: Publish documentation
on:
push:
branches: [ master ]
paths:
- musify/**
- docs/**
pull_request_target:
branches: [ master ]
paths:
- musify/**
- docs/**
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
env:
python-version: '3.12'
jobs:
build:
name: 📃 Build pages
runs-on: ubuntu-latest
steps:
- name: Checkout 🛒
uses: actions/checkout@v4
- name: ⚙️ Setup - Python 🐍
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
- name: ⚙️ Setup - Pages
uses: actions/configure-pages@v4
- name: ⚙️ Setup - Install dependencies
run: |
sudo apt install graphviz
pip install -e '.[docs]'
- name: 🏗️ Sphinx build
run: |
make clean
sphinx-apidoc -o ./docs ./musify -d 4 --force --module-first --separate --no-toc -t ./docs/_templates
make html
- name: 📦 Upload build artifacts
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_build/html
deploy:
name: Deploy pages 🚀
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'workflow_dispatch' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
steps:
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4