Skip to content

Release 0.8.0

Release 0.8.0 #9

Workflow file for this run

name: Release
on:
release:
types:
- created
jobs:
build-n-publish:
name: Publish Docs
environment: production
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'poetry'
- name: Install Dependencies
run: |
poetry install --with docs --without dev
poetry build
- 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 run mkdocs gh-deploy --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --force
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1