Skip to content

Commit 84d5218

Browse files
committed
workflows: Switch to new GitHub Pages workflow
1 parent c79d954 commit 84d5218

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,10 @@ jobs:
441441
name: Publish
442442
needs: [doxygen, coverage]
443443
runs-on: ubuntu-24.04
444-
permissions:
445-
contents: write
446-
if: ${{ github.ref == 'refs/heads/master' }}
447444
timeout-minutes: 30
448445
steps:
449-
- name: Checkout
450-
uses: actions/checkout@v4
451-
with:
452-
ref: gh-pages
453-
path: pages
454-
show-progress: false
446+
- name: Configure Pages
447+
uses: actions/configure-pages@v5
455448
- name: Download doxygen
456449
uses: actions/download-artifact@v4
457450
with:
@@ -464,15 +457,24 @@ jobs:
464457
path: coverage
465458
- name: Prepare
466459
run: |
467-
rsync --archive --human-readable --verbose --delete --exclude=.git doxygen/. pages
468-
mkdir pages/coverage
469-
rsync --archive --human-readable --verbose --delete --exclude=.git coverage/. pages/coverage
470-
touch pages/.nojekyll
471-
- name: Commit
472-
run: |
473-
cd pages
474-
git config user.name 'github-actions[bot]'
475-
git config user.email 'github-actions[bot]@users.noreply.github.com'
476-
git add --all .
477-
git commit --amend --reset-author --message='Pages for ${{ github.sha }}'
478-
git push --force
460+
mv coverage doxygen/coverage
461+
- name: Upload artifact
462+
uses: actions/upload-pages-artifact@v3
463+
with:
464+
path: doxygen
465+
deploy:
466+
name: Deploy
467+
needs: publish
468+
runs-on: ubuntu-24.04
469+
timeout-minutes: 30
470+
if: ${{ github.ref == 'refs/heads/master' }}
471+
permissions:
472+
id-token: write
473+
pages: write
474+
environment:
475+
name: github-pages
476+
url: ${{ steps.deployment.outputs.page_url }}
477+
steps:
478+
- name: Deploy Pages
479+
id: deployment
480+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)