feat: Google Cloud Platform page added (#92) #67
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
name: Release-Please | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
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: Configure Git user | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- 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 |