Skip to content

Commit 7ddd926

Browse files
Update to newer github pages deploy workflow
1 parent 6c8cad0 commit 7ddd926

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@ on:
99
workflow_dispatch:
1010

1111
permissions:
12-
contents: write
12+
contents: read
13+
pages: 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
1321

1422
jobs:
1523
build:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
1627
runs-on: ubuntu-latest
1728
steps:
1829
- name: Clone Repository
@@ -31,8 +42,14 @@ jobs:
3142
- name: Run Build
3243
run: dotnet docfx docfx.all.json
3344

34-
- name: Deploy
35-
uses: JamesIves/github-pages-deploy-action@v4
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v5
47+
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
3650
with:
37-
folder: _site
38-
clean: true
51+
path: '_site'
52+
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)