Skip to content

feat: Deploy wiki using gh-pages #1

feat: Deploy wiki using gh-pages

feat: Deploy wiki using gh-pages #1

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Clone repository
uses: actions/checkout@v5
- name: Setup Python environment
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Get pip cache directory
id: pip-cache
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: python3 -m pip install -r ./requirements.txt
- name: Build Docs
run: mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
cname: dockwatch.wiki
user_name: Notifiarr
user_email: notifiarr+github-actions[bot]@users.noreply.github.com