This uses a script check in the first step of tag events that switches the checkout to the version branch that the tag refers to: https://github.com/grafana/writers-toolkit/blob/main/publish-technical-documentation-release/determine-release-branch. Implemented in: -305f9896c4-541fb6e8bdBecause the script uses Bash regular expression pattern matching, inputs must use Extended Regular Expression syntax. Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
30 lines
906 B
YAML
30 lines
906 B
YAML
name: publish-technical-documentation-release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- v[0-9]+.[0-9]+.x
|
|
tags:
|
|
- v[0-9]+.[0-9]+.[0-9]+
|
|
paths:
|
|
- "docs/sources/**"
|
|
workflow_dispatch:
|
|
jobs:
|
|
sync:
|
|
if: github.repository == 'grafana/grafana'
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: grafana/writers-toolkit/publish-technical-documentation-release@publish-technical-documentation-release/v2
|
|
with:
|
|
release_tag_regexp: "^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
release_branch_regexp: "^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.x$"
|
|
release_branch_with_patch_regexp: "^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
website_directory: content/docs/grafana
|
|
version_suffix: ""
|