Skip to content

Commit e812632

Browse files
authored
Merge pull request #1619 from liamcottle/main
[docs] update github build script
2 parents 10067ad + 85aa052 commit e812632

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
- docs
98

109
permissions:
1110
contents: write
@@ -23,12 +22,15 @@ jobs:
2322
with:
2423
ruby-version: 3.x
2524

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
25+
- name: Build
3226
run: |
3327
pip install mkdocs-material
34-
mkdocs gh-deploy --force
28+
mkdocs build
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
cname: docs.meshcore.nz
35+
publish_dir: ./site
36+
publish_branch: 'gh-pages'

0 commit comments

Comments
 (0)