mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Build and Store Documentation Artifact
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- devel
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install sphinx poetry
|
|
poetry install
|
|
- name: Build Sphinx documentation
|
|
run: |
|
|
cd docs && ls
|
|
bash auto_docu.sh
|
|
- name: Upload documentation files as artifact
|
|
id: deployment
|
|
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
|
|
with:
|
|
path: docs/build/html/
|
|
|
|
deploy:
|
|
needs: build
|
|
|
|
# Deploy to the github-pages environment
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|