Skip to content

Commit 2b0dd1f

Browse files
committed
automatically deploy docs to GitHub Pages
1 parent d5f8da5 commit 2b0dd1f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Docs Workflow
2+
run-name: ${{ github.actor }} is publishing document artifacts 🚀
3+
on: [push, workflow_dispatch]
4+
5+
6+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Single deploy job since we're just deploying
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v4
30+
- name: Build html
31+
run: make html
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
# Upload build repository
36+
path: './_build/html'
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4
40+
41+
42+
- run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)