Skip to content

gh ci: fix deploy doc action #10

gh ci: fix deploy doc action

gh ci: fix deploy doc action #10

Workflow file for this run

name: Build and Deploy Sphinx Doc
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: sudo apt-get update && sudo apt-get install -y default-jre plantuml tox
- name: Build static site with Tox
run: |
cd doc
tox -e py3-html
- name: Remove Hard Links
run: find /build/html -type f -links +1 -exec sh -c 'cp --remove-destination "$1" "$1.temp" && mv -f "$1.temp" "$1"' _ {} \;
- name: Upload Artifacts for Deployment
uses: actions/upload-artifact@v4
with:
name: github-pages
path: doc/build/html
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: github-pages
- name: List Files
run: ls -R .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifact_name: github-pages