mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Merge pull request #1619 from liamcottle/main
[docs] update github build script
This commit is contained in:
commit
e812632235
1 changed files with 10 additions and 8 deletions
18
.github/workflows/github-pages.yml
vendored
18
.github/workflows/github-pages.yml
vendored
|
|
@ -5,7 +5,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- docs
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -23,12 +22,15 @@ jobs:
|
|||
with:
|
||||
ruby-version: 3.x
|
||||
|
||||
- name: Configure Git Credentials
|
||||
run: |
|
||||
git config user.name github-actions[bot]
|
||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
|
||||
- name: Build and Deploy
|
||||
- name: Build
|
||||
run: |
|
||||
pip install mkdocs-material
|
||||
mkdocs gh-deploy --force
|
||||
mkdocs build
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
cname: docs.meshcore.nz
|
||||
publish_dir: ./site
|
||||
publish_branch: 'gh-pages'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue