Skip to content

Commit c3c1651

Browse files
committed
Build & Deploy Actions
1 parent 6b4c369 commit c3c1651

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build & Deploy Documentation
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
deploy:
18+
environment:
19+
name: main
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
name: Build Documentation
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
26+
- name: Run Sphinx documentation build
27+
uses: ammaraskar/[email protected]
28+
with:
29+
docs-folder: "docs/"
30+
- name: Upload documentation artifact
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: documentation
34+
path: _build/html/
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v1

.github/workflows/pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build & Deploy Documentation
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
name: Build Documentation
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v3
12+
- name: Run Sphinx documentation build
13+
uses: ammaraskar/[email protected]
14+
with:
15+
docs-folder: "docs/"
16+
- name: Upload documentation artifact
17+
uses: actions/upload-artifact@v3
18+
with:
19+
name: documentation
20+
path: _build/html/

0 commit comments

Comments
 (0)