File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Publish Docs
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ paths :
9+ - docs/**
10+ - mkdocs.yml
11+ - .github/workflows/Docs.yml
12+
13+ env :
14+ GH_TOKEN : ${{ github.token }}
15+
16+ defaults :
17+ run :
18+ shell : pwsh
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+
24+ permissions :
25+ contents : read # to checkout the repo
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+
31+ - uses : actions/checkout@v4
32+ with :
33+ repository : PSModule/.github
34+ path : src
35+ fetch-depth : 0
36+
37+ - uses : actions/configure-pages@v5
38+
39+ - name : Install mkdoks-material
40+ run : |
41+ pip install mkdocs-material
42+ pip install mkdocs-git-authors-plugin
43+ pip install mkdocs-git-revision-date-localized-plugin
44+ pip install mkdocs-git-committers-plugin-2
45+
46+ - name : Build mkdocs-material project
47+ run : |
48+ mkdocs build --config-file ./mkdocs.yml --strict --site-dir _site/
49+
50+ - uses : actions/upload-pages-artifact@v3
51+
52+ deploy :
53+ needs : build
54+ permissions :
55+ pages : write # to deploy to Pages
56+ id-token : write # to verify the deployment originates from an appropriate source
57+ environment :
58+ name : github-pages
59+ url : ${{ steps.deployment.outputs.page_url }}
60+ runs-on : ubuntu-latest
61+ steps :
62+ - name : Deploy to GitHub Pages
63+ id : deployment
64+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments