Update to version 0.2 #32
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| # Cancel any ongoing run of this workflow on the same PR or ref | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| # Required permissions to deploy in GH pages | |
| permissions: | |
| id-token: write | |
| pages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: '3.14' | |
| enable-cache: true | |
| - name: Setup just | |
| uses: extractions/setup-just@v3 | |
| - name: Setup Khiops | |
| run: | | |
| sudo apt-get update -y && sudo apt-get install wget lsb-release -y | |
| wget -O "./khiops.deb" "https://github.com/KhiopsML/khiops/releases/download/11.0.0/khiops-core-openmpi_11.0.0-1-$(lsb_release -cs).amd64.deb" | |
| sudo dpkg -i "./khiops.deb" || sudo apt-get -f -y install | |
| - name: Build docs | |
| run: | | |
| mkdir docs/_static | |
| just docs | |
| - name: Upload the package as an artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ./docs/_build/html | |
| publish: | |
| if: github.ref_type == 'tag' | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Github Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Deploy docs to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |