Skip to content

feat: enhance release workflow to publish version of docs using mike … #17

feat: enhance release workflow to publish version of docs using mike …

feat: enhance release workflow to publish version of docs using mike … #17

on:
push:
branches:
- main
name: release-please
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
release-type: simple
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0
- name: Install Pixi
if: ${{ steps.release.outputs.release_created }}
uses: prefix-dev/[email protected]
with:
pixi-version: v0.34.0
cache: true
locked: false
- name: Deploy Documentation Using Mike and Released Version
if: ${{ steps.release.outputs.release_created }}
run: |
VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed 's/v//')
echo "Deploying version $VERSION"
pixi run mike deploy --push --update-aliases $VERSION latest