Skip to content

Commit 29d6fb5

Browse files
authored
Replace 3rd party action with GitHub actions for gh-pages (#421)
1 parent e1104e0 commit 29d6fb5

File tree

3 files changed

+47
-17
lines changed

3 files changed

+47
-17
lines changed

.github/workflows/gh-pages.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66

77
jobs:
88

9-
documentation-job:
9+
build-documentation:
1010
runs-on: ubuntu-24.04
11-
11+
permissions:
12+
contents: read
1213
steps:
1314
- name: SCM Checkout
1415
uses: actions/checkout@v4
@@ -22,10 +23,22 @@ jobs:
2223
run: |
2324
poetry run -- nox -s docs:multiversion
2425
25-
- name: Deploy
26-
uses: JamesIves/github-pages-[email protected]
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
2728
with:
28-
branch: gh-pages
29-
folder: .html-documentation
30-
git-config-name: Github Action
31-
git-config-email: [email protected]
29+
path: .html-documentation
30+
31+
deploy-documentation:
32+
needs: [ build-documentation ]
33+
permissions:
34+
contents: read
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-24.04
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

doc/changes/unreleased.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
## ⚒️ Refactorings
44

5-
* [#412](https://github.com/exasol/python-toolbox/issues/392): Refactor pre commit hook package version.py into nox task
5+
* [#412](https://github.com/exasol/python-toolbox/issues/392): Refactored pre commit hook package version.py into nox task
6+
7+
## Security
8+
9+
* [#420](https://github.com/exasol/python-toolbox/issues/420): Replaced 3rd party action with GitHub actions for gh-pages

exasol/toolbox/templates/github/workflows/gh-pages.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66

77
jobs:
88

9-
documentation-job:
9+
build-documentation:
1010
runs-on: ubuntu-24.04
11-
11+
permissions:
12+
contents: read
1213
steps:
1314
- name: SCM Checkout
1415
uses: actions/checkout@v4
@@ -22,10 +23,22 @@ jobs:
2223
run: |
2324
poetry run -- nox -s docs:multiversion
2425
25-
- name: Deploy
26-
uses: JamesIves/github-pages-[email protected]
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
2728
with:
28-
branch: gh-pages
29-
folder: .html-documentation
30-
git-config-name: Github Action
31-
git-config-email: [email protected]
29+
path: .html-documentation
30+
31+
deploy-documentation:
32+
needs: [ build-documentation ]
33+
permissions:
34+
contents: read
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-24.04
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)