File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 9
9
workflow_dispatch :
10
10
11
11
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
13
21
14
22
jobs :
15
23
build :
24
+ environment :
25
+ name : github-pages
26
+ url : ${{ steps.deployment.outputs.page_url }}
16
27
runs-on : ubuntu-latest
17
28
steps :
18
29
- name : Clone Repository
31
42
- name : Run Build
32
43
run : dotnet docfx docfx.all.json
33
44
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
36
50
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
You can’t perform that action at this time.
0 commit comments