Skip to content

feat: Update changelog with 0.2.0 features and fixes, migrate docs ch… #8

feat: Update changelog with 0.2.0 features and fixes, migrate docs ch…

feat: Update changelog with 0.2.0 features and fixes, migrate docs ch… #8

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: pip install mkdocs-material
- name: Prepare docs for MkDocs
run: |
# Copy README as index page
cp README.md docs/index.md
cp CHANGELOG.md docs/changelog.md
# Copy logo into docs assets
mkdir -p docs/assets
cp apcore-toolkit-logo.svg docs/assets/
# Fix links in index.md: docs/X → X (since we're now inside docs/)
sed -i 's|\./docs/|./|g' docs/index.md
sed -i 's|(docs/|(|g' docs/index.md
# Fix logo reference in index.md
sed -i 's|\./apcore-toolkit-logo\.svg|./assets/apcore-toolkit-logo.svg|g' docs/index.md
- run: mkdocs build
- uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4