File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Your GitHub workflow file under .github/workflows/
2+ # Trigger the action on push to main
3+ on :
4+ workflow_dispatch :
5+
6+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7+ permissions :
8+ actions : read
9+ pages : write
10+ id-token : write
11+
12+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ publish-docs :
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v3
27+ - name : Dotnet Setup
28+ uses : actions/setup-dotnet@v3
29+ with :
30+ dotnet-version : 9.x
31+
32+ - run : dotnet tool update -g docfx
33+ - run : docfx documentation/docfx.json
34+
35+ - name : Upload artifact
36+ uses : actions/upload-pages-artifact@v3
37+ with :
38+ # Upload entire repository
39+ path : documentation/_site
40+ - name : Deploy to GitHub Pages
41+ id : deployment
42+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments