Merge pull request #4 from RocPy/add_calendar_schedule #7
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
name: Build and Deploy MkDocs | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip install uv | |
uv sync | |
- name: Build site | |
run: | | |
source .venv/bin/activate | |
mkdocs build --clean | |
- name: Deploy to rocpy.github.io | |
uses: peaceiris/actions-gh-pages@v4 | |
if: github.ref == 'refs/heads/main' | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
publish_branch: main | |
external_repository: rocpy/rocpy.github.io | |
publish_dir: ./site | |
cname: rocpy.org |