Skip to content

fix: Move GHA.

fix: Move GHA. #1

Workflow file for this run

name: SleepKit Docs
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
build-docs:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry==1.6.1
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- name: Build Docs
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global user.email "adam.page@ambiq.com"
git remote rm origin
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
poetry install --only docs
poetry run mkdocs gh-deploy --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --force