1- name : Generate API Reference
1+ name : Generate Documentation and API Reference
22
33# Trigger the action on push to main
44on :
@@ -17,31 +17,32 @@ permissions:
1717concurrency :
1818 group : " pages"
1919 cancel-in-progress : false
20-
20+
2121jobs :
2222 publish-docs :
2323 environment :
2424 name : github-pages
2525 url : ${{ steps.deployment.outputs.page_url }}
2626 runs-on : ubuntu-latest
2727 steps :
28- - name : Checkout
29- uses : actions/checkout@v3
30- - name : Dotnet Setup
31- uses : actions/setup-dotnet@v3
32- with :
33- dotnet-version : 8.x
28+ - name : Checkout
29+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pinning V4
30+ - name : Dotnet Setup
31+ uses : actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # pinning V4
32+ with :
33+ dotnet-version : 8.x
34+
35+ - run : dotnet tool update -g docfx --version 2.78.3
36+ - run : docfx docs/docfx.json
3437
35- - run : dotnet tool update -g docfx --version 2.74.0
36- - run : docfx docs/docfx.json
38+ - name : Setup Pages
39+ uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # pinning V5
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # pinning V3
42+ with :
43+ # Upload entire repository
44+ path : " docs/_site"
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # pinning V4
3748
38- - name : Setup Pages
39- uses : actions/configure-pages@v3
40- - name : Upload artifact
41- uses : actions/upload-pages-artifact@v2
42- with :
43- # Upload entire repository
44- path : ' docs/_site'
45- - name : Deploy to GitHub Pages
46- id : deployment
47- uses : actions/deploy-pages@v2
0 commit comments