Skip to content

Commit cb225a3

Browse files
committed
Updated workflow to use native deploy
1 parent 6288ed4 commit cb225a3

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/pages.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,27 @@ on:
55
branches: [main]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
813
jobs:
914
deploy:
1015
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
1119
steps:
1220
- uses: actions/checkout@v4
1321
- name: Install Doxygen
1422
run: sudo apt-get update && sudo apt-get install -y doxygen
1523
- name: Generate Documentation
1624
run: cd docs && doxygen Doxyfile
17-
- name: Deploy
18-
uses: peaceiris/actions-gh-pages@v4
25+
- name: Upload Pages artifact
26+
uses: actions/upload-pages-artifact@v3
1927
with:
20-
github_token: ${{ secrets.GITHUB_TOKEN }}
21-
publish_dir: ./docs/html
28+
path: ./docs/html
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)