Skip to content

Commit ffbdeff

Browse files
authored
Merge pull request #134 from benjeffery/docs-deploy
Deploy docs to github pages
2 parents 90bd40a + ede8823 commit ffbdeff

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Build Docs
33
on:
44
pull_request:
55
push:
6-
branches: [main]
6+
branches: [main, test]
77
tags:
88
- '*'
99

1010
jobs:
11-
build-deploy-docs:
11+
build-docs:
1212
name: Docs
1313
runs-on: ubuntu-latest
1414
steps:
@@ -32,3 +32,26 @@ jobs:
3232
- name: Build Docs
3333
run: |
3434
make -C docs
35+
36+
- name: Upload Pages Artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: docs/_build/html
40+
41+
deploy:
42+
needs: build-docs
43+
44+
permissions:
45+
pages: write
46+
id-token: write
47+
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
if: github.ref == 'refs/heads/main'
56+
id: deployment
57+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)