feat: enhance release workflow to publish version of docs using mike … #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |