update to build docs for latest release
This commit is contained in:
parent
bcf05782d2
commit
3f7daf198e
1 changed files with 17 additions and 1 deletions
18
.github/workflows/build-docs.yml
vendored
18
.github/workflows/build-docs.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: 'docs-publish'
|
name: 'docs-publish'
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ rel-* ]
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -24,6 +24,22 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Determine latest rel-x.y branch
|
||||||
|
id: latest
|
||||||
|
run: |
|
||||||
|
latest_branch=$(git branch -r \
|
||||||
|
| sed 's|origin/||' \
|
||||||
|
| grep '^rel-[0-9]\+\.[0-9]\+$' \
|
||||||
|
| sed 's/rel-//' \
|
||||||
|
| sort -V \
|
||||||
|
| tail -n 1)
|
||||||
|
echo "latest=rel-$latest_branch" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Stop if not latest
|
||||||
|
if: steps.latest.outputs.latest != github.ref_name
|
||||||
|
run: |
|
||||||
|
echo "Not latest branch. This is ${{ github.ref_name }}, latest is ${{ steps.latest.outputs.latest }}"
|
||||||
|
exit 0
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue