From d54b2313de335b3f6782688aa75e9e5ed5a65aa9 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Thu, 17 Apr 2025 04:47:14 +0200 Subject: [PATCH 1/2] Use GitHub Pages official action --- .github/workflows/release.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7cc635..3806bb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: types: [created] jobs: release: + permissions: + contents: read + id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -19,9 +22,19 @@ jobs: env: PYPI_TOKEN: ${{ steps.mint.outputs.api-token }} - run: poetry run poe document - - uses: peaceiris/actions-gh-pages@v3 + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ github.token }} - publish_dir: ./documentation/module/_build/html - publish_branch: documentation - force_orphan: true + path: ./documentation/module/_build/html + deploy-pages: + needs: release + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/deploy-pages@v4 + id: deployment From e82ce776b88924087277fce086699936bfd50990 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Thu, 17 Apr 2025 04:56:36 +0200 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3806bb8..47edef9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,7 @@ name: release on: release: types: [created] + push: jobs: release: permissions: @@ -21,6 +22,7 @@ jobs: - run: poetry publish --build -u __token__ -p $PYPI_TOKEN env: PYPI_TOKEN: ${{ steps.mint.outputs.api-token }} + if: false - run: poetry run poe document - uses: actions/configure-pages@v5 - uses: actions/upload-pages-artifact@v3