-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dcb933
commit 7bc55b0
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
name: Deploy MkDocs Site | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Set this to the branch name from which you want to deploy | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install Dependencies | ||
python-version: '3.x' # Set this to the Python version you need | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs mkdocs-material | ||
- name: Build MkDocs site | ||
pip install mkdocs mkdocs-material # Install MkDocs and any themes/plugins you need | ||
- name: Build the MkDocs site | ||
run: mkdocs build --verbose | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-main | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
publish_dir: ./site | ||
cname: mpythonboard.bitandbrick.com # Ensure your CNAME matches your subdomain | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./site # Default MkDocs build output directory |
Binary file not shown.