Skip to content

Commit caf4b77

Browse files
committed
Try using the gh template
1 parent d7a04fb commit caf4b77

File tree

1 file changed

+33
-14
lines changed

1 file changed

+33
-14
lines changed

.github/workflows/docs.yml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,31 @@ on:
1010
- main
1111
- devel
1212

13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
1328
jobs:
14-
build_docs:
29+
deploy_docs:
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
1533
runs-on: ubuntu-latest
1634
steps:
17-
- name: Check out the code
18-
uses: actions/checkout@v3
19-
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
2038
- name: Install Pandoc
2139
run: |
2240
sudo apt-get update
@@ -32,14 +50,15 @@ jobs:
3250
cd docs/
3351
make html
3452
35-
# - name: Upload built docs as artifact
36-
# uses: actions/upload-artifact@v4
37-
# with:
38-
# name: html-docs
39-
# path: docs/build/html/
40-
41-
- name: Deploy to GitHub Pages
42-
uses: peaceiris/actions-gh-pages@v4
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v5
55+
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v3
4358
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: ./docs/build/html
59+
# Upload entire repository
60+
path: ./docs/build/html/
61+
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)