Skip to content

Commit 180dc7a

Browse files
Fix deployment
1 parent f0b5e5c commit 180dc7a

2 files changed

Lines changed: 64 additions & 53 deletions

File tree

.github/workflows/DeployPages.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/Docs.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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

0 commit comments

Comments
 (0)