Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ run-name: Publish emulators

on:
push:
branches:
- main
# These are GitHub glob filter patterns, not regexes: `+` means "one or more
# of the preceding character" and there is no optional group, so the stable
# and release-candidate forms have to be listed separately.
tags:
- 'v[0-9]+.[0-9]+.[0-9]+(rc\d)?'
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
workflow_dispatch: {}

concurrency:
Expand Down Expand Up @@ -119,8 +121,16 @@ jobs:
pip install -r doc_requirements.txt
pip install -e .
- name: Deploy docs
env:
VERSION: ${{ github.ref_name }}
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git fetch origin gh-pages
mike deploy --push --update-aliases ${{ github.ref_name }} latest
if [[ "$VERSION" == *rc* ]]; then
# A release candidate gets its own docs version, but must not become
# the `latest` that users land on.
mike deploy --push "$VERSION"
else
mike deploy --push --update-aliases "$VERSION" latest
fi
Loading