Skip to content

Commit f48bd25

Browse files
committed
Testing docs deployment workflow
1 parent bd2f89a commit f48bd25

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/build_docs.yml

+24-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1-
name: Build Docs
2-
1+
name: Build and Deploy Docs
32
on:
43
push:
5-
branches: [ master, develop, release, docs ]
4+
branches: [docs ]
5+
66
pull_request:
7-
branches: [ master, develop, release, docs ]
7+
branches: [release, docs ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
821

9-
env:
10-
OMP_NUM_THREADS: 1
11-
1222
jobs:
1323
build_docs:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
1427
name: Build Docs
1528
runs-on: ubuntu-latest
1629
steps:
@@ -31,4 +44,8 @@ jobs:
3144
with:
3245
name: docs
3346
path: docs/html
47+
48+
- name: Deploy Docs
49+
id: deployment
50+
uses: actions/deploy-pages@v4
3451

0 commit comments

Comments
 (0)