From 13f0d867749c4198854823b65fbf98ff32b6e358 Mon Sep 17 00:00:00 2001 From: Mathias BROUSSET Date: Tue, 23 Jun 2026 17:35:57 +0200 Subject: [PATCH] update actions --- .github/workflows/ci.yml | 4 ++-- .github/workflows/documentation.yml | 23 +++++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c4ab76..a59cbc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,10 @@ jobs: python_version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Clone - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Python version - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python_version }} diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index df45088..1e668b6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -10,13 +10,18 @@ on: branches: - master +permissions: + contents: read + pages: write + id-token: write + jobs: generate: name: Generate the documentation runs-on: ubuntu-latest steps: - name: Clone - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Install Python dependencies @@ -26,21 +31,19 @@ jobs: - name: Generate the documentation run: (cd doc && make html) - name: Upload documentation bundle - uses: actions/upload-artifact@v4 + uses: actions/upload-pages-artifact@v3 with: - name: documentation path: doc/build/html/ deploy: name: Deploy the documentation on Github pages runs-on: ubuntu-latest needs: generate - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Download documentation bundle - uses: actions/download-artifact@v3 - name: Deploy documentation on pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: documentation/ + id: deployment + uses: actions/deploy-pages@v5