Skip to content

Commit

Permalink
S
Browse files Browse the repository at this point in the history
  • Loading branch information
bitandbrick committed Apr 20, 2024
1 parent 2dcb933 commit 7bc55b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/deploy-mkdocs.yml
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 modified site/sitemap.xml.gz
Binary file not shown.

0 comments on commit 7bc55b0

Please sign in to comment.