diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8bc1dc438..61560e0ac 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -6,9 +6,10 @@ on: jobs: - documentation-job: + build-documentation: runs-on: ubuntu-24.04 - + permissions: + contents: read steps: - name: SCM Checkout uses: actions/checkout@v4 @@ -22,10 +23,22 @@ jobs: run: | poetry run -- nox -s docs:multiversion - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.7.3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages - folder: .html-documentation - git-config-name: Github Action - git-config-email: opensource@exasol.com + path: .html-documentation + + deploy-documentation: + needs: [ build-documentation ] + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-24.04 + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index 5662f8595..5a03f01d8 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -2,4 +2,8 @@ ## ⚒️ Refactorings -* [#412](https://github.com/exasol/python-toolbox/issues/392): Refactor pre commit hook package version.py into nox task \ No newline at end of file +* [#412](https://github.com/exasol/python-toolbox/issues/392): Refactored pre commit hook package version.py into nox task + +## Security + +* [#420](https://github.com/exasol/python-toolbox/issues/420): Replaced 3rd party action with GitHub actions for gh-pages \ No newline at end of file diff --git a/exasol/toolbox/templates/github/workflows/gh-pages.yml b/exasol/toolbox/templates/github/workflows/gh-pages.yml index 79d11d15a..b45206be2 100644 --- a/exasol/toolbox/templates/github/workflows/gh-pages.yml +++ b/exasol/toolbox/templates/github/workflows/gh-pages.yml @@ -6,9 +6,10 @@ on: jobs: - documentation-job: + build-documentation: runs-on: ubuntu-24.04 - + permissions: + contents: read steps: - name: SCM Checkout uses: actions/checkout@v4 @@ -22,10 +23,22 @@ jobs: run: | poetry run -- nox -s docs:multiversion - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.7.3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages - folder: .html-documentation - git-config-name: Github Action - git-config-email: opensource@exasol.com + path: .html-documentation + + deploy-documentation: + needs: [ build-documentation ] + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-24.04 + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4