Skip to content

Commit 6564bbd

Browse files
committed
migrate docs build script so cname survives
1 parent 10067ad commit 6564bbd

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323
with:
2424
ruby-version: 3.x
2525

26-
- name: Configure Git Credentials
27-
run: |
28-
git config user.name github-actions[bot]
29-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
30-
31-
- name: Build and Deploy
26+
- name: Build
3227
run: |
3328
pip install mkdocs-material
34-
mkdocs gh-deploy --force
29+
mkdocs build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
cname: docs.meshcore.nz
36+
publish_dir: ./site
37+
publish_branch: 'gh-pages'

0 commit comments

Comments
 (0)