Skip to content

Commit 7fd2917

Browse files
Refactor GitHub Actions workflow: replace page configuration step and streamline deployment process
1 parent dff3ac7 commit 7fd2917

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/Docs.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- uses: actions/configure-pages@v5
33+
- name: Connect to GitHub
34+
uses: PSModule/GitHub-Script@v1
3435

3536
- name: Install mkdocs-material
3637
env:
@@ -51,15 +52,5 @@ jobs:
5152
run: |
5253
mkdocs build --config-file ./mkdocs.yml --strict --site-dir _site/
5354
54-
- uses: actions/upload-pages-artifact@v3
55-
56-
deploy:
57-
needs: build
58-
environment:
59-
name: github-pages
60-
url: ${{ steps.deployment.outputs.page_url }}
61-
runs-on: ubuntu-latest
62-
steps:
6355
- name: Deploy to GitHub Pages
64-
id: deployment
65-
uses: actions/deploy-pages@v4
56+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)