-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.56 KB
/
docs.yml
File metadata and controls
46 lines (44 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish docs
on:
workflow_dispatch:
inputs:
arVersion:
description: "AR version"
required: true
type: string
jobs:
publish-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # fetch all commits/branches
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.13
cache: pip
- run: pip install -r requirements.txt
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: ~/.cache/uv
key: uv-3.13-${{ hashFiles('uv.lock') }}
- run: uv sync --frozen
- name: Reinstall from ../python-client
run: uv sync --reinstall-package arakawa
- run: AR_VERSION=${{ inputs.arVersion }} ./nbbuild.sh
- run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: |
VERSION=$(uv run python convert_to_py_version.py ${{ inputs.arVersion }})
if echo "$VERSION" | grep -q "[A-Za-z]"; then
echo "beta/alpha version detected"
uv run mike deploy "$VERSION" --update-aliases --push
else
echo "stable version detected"
uv run mike deploy "$VERSION" latest --update-aliases --push
uv run mike set-default --push latest
fi