bump patch #56
Workflow file for this run
This file contains hidden or 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: Deploy Release Docs | |
on: | |
push: | |
tags: | |
- "**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
# See: https://github.com/pdm-project/pdm/issues/1879 | |
env: | |
PDM_DEPS: 'urllib3<2' | |
jobs: | |
documentation: | |
name: Deploy release documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for dev documentation to deploy | |
uses: lewagon/[email protected] | |
with: | |
ref: main | |
check-name: 'Deploy dev documentation' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 10 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
# Install a specific version of uv. | |
version: "0.5.1" | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Install Documentation dependencies | |
run: uv sync --group doc | |
- name: Set up build cache | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
key: mkdocs-material-${{ github.ref }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
# derived from: | |
# https://github.com/RemoteCloud/public-documentation/blob/dev/.github/workflows/build_docs.yml | |
- name: Configure Git user | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: Set release notes tag | |
run: | | |
export TAG_PATH=${{ github.ref }} | |
echo ${TAG_PATH} | |
echo "TAG_VERSION=${TAG_PATH##*/}" >> $GITHUB_ENV | |
echo ${TAG_VERSION} | |
- name: Deploy documentation | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} | |
run: | | |
git fetch origin gh-pages --depth=1 | |
uv run mike deploy --update-alias --push ${TAG_VERSION} latest |