Skip to content

Commit c28db0b

Browse files
authored
gh-pages: Switch to action deploy (#551)
For the repo size reduction #543 switch to using actions based deployment of our github pages. The pr-preview functionality will return in a later PR.
1 parent 5df8049 commit c28db0b

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/docs-deploy.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ concurrency:
3737

3838
jobs:
3939
# Build job for Sphinx documentation
40-
deploy:
40+
build:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Checkout
@@ -84,14 +84,18 @@ jobs:
8484
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
8585
with:
8686
path: 'docs/public/'
87-
87+
# Deployment job
88+
deploy:
89+
environment:
90+
name: github-pages
91+
url: ${{ steps.deployment.outputs.page_url }}
92+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
93+
permissions:
94+
pages: write # to deploy to Pages
95+
id-token: write # to verify the deployment originates from an appropriate source
96+
runs-on: ubuntu-latest
97+
needs: build
98+
steps:
8899
- name: Deploy to GitHub Pages
89-
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
90-
with:
91-
branch: gh-pages/documentation
92-
folder: docs/public
93-
clean-exclude: |
94-
pr-preview/
95-
.nojekyll
96-
force: false
97-
single-commit: true
100+
id: deployment
101+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/pr-checks.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,6 @@ jobs:
293293
exit 1
294294
fi
295295
296-
- name: Deploy preview
297-
uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 # v1.8.1
298-
with:
299-
source-dir: ./docs/public/
300-
preview-branch: gh-pages/documentation
301-
302296
- name: Run spelling check
303297
id: spelling
304298
if: github.event.action != 'closed'

0 commit comments

Comments
 (0)