Skip to content

Commit 91433f2

Browse files
committed
Checkpoint to see if this is working.
1 parent 9a3690c commit 91433f2

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/publish_docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
build:
15+
name: "Build Docs"
1516
runs-on: 'ubuntu-latest'
1617
steps:
1718
- uses: 'actions/checkout@v4'
@@ -25,6 +26,7 @@ jobs:
2526
with:
2627
path: 'generated-pages'
2728
deploy:
29+
name: "Deploy Docs"
2830
environment:
2931
name: 'github-pages'
3032
url: '${{ steps.deployment.outputs.page_url }}'

.github/workflows/publish_docs_preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ on:
99
- closed
1010

1111
permissions:
12-
pages: 'write'
13-
id-token: 'write'
1412
contents: 'write'
1513
pull-requests: 'write'
1614

1715
jobs:
1816
build:
17+
name: "Build PR Preview Docs"
1918
runs-on: 'ubuntu-latest'
2019
steps:
2120
- uses: 'actions/checkout@v4'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Publish Preview of Docs Site from branch'
2+
3+
# The publish_docs_preview.yml workflow takes a PR and publishes the results to it's own branch
4+
# so users can preview it. But that git branch then needs some way to publish, so this action does that.
5+
6+
on:
7+
push:
8+
branch:
9+
- gh-pages
10+
11+
permissions:
12+
pages: 'write'
13+
id-token: 'write'
14+
15+
jobs:
16+
stage:
17+
name: "Stage PR preview from branch to pages"
18+
runs-on: 'ubuntu-latest'
19+
steps:
20+
- uses: 'actions/checkout@v4'
21+
deploy:
22+
name: "Deploy PR Preview from branch to pages"
23+
needs: 'stage'
24+
environment:
25+
name: 'gh-pages-pr-preview'
26+
url: '${{ steps.deployment.outputs.page_url }}'
27+
runs-on: 'ubuntu-latest'
28+
steps:
29+
- name: 'Deploy to GitHub Pages'
30+
id: 'deployment'
31+
uses: 'actions/deploy-pages@v4'

0 commit comments

Comments
 (0)