Fix deploy-docs.yml content sources (#461)

* Fix deploy-docs.yml content sources

Include future branches and tags, but exclude old tags and branches
that do not contain Antora builds

* Reduce GitHub permissions to read only
This commit is contained in:
Rob Winch
2023-09-25 17:57:38 -05:00
committed by GitHub
parent b49233eb21
commit 1d40740ce3
2 changed files with 3 additions and 5 deletions

View File

@@ -10,9 +10,7 @@ on:
branches: docs-build
env:
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
permissions:
contents: write
actions: write
permissions: read-all
jobs:
build:
if: github.repository_owner == 'spring-projects'

View File

@@ -18,8 +18,8 @@ content:
- url: https://github.com/spring-projects/spring-pulsar
# Refname matching:
# https://docs.antora.org/antora/latest/playbook/content-refname-matching/
branches: [ main ]
tags: [ 'v({1..9}).+({0..9}).+({0..9})?(-{RC,M}+({0..9}))' ]
branches: [ main, '({1..9}).+({0..9}).x' ]
tags: [ 'v({1..9}).+({0..9}).+({0..9})?(-{RC,M}+({0..9}))', '!(v1.0.0-M({0..2}))']
start_path: spring-pulsar-docs/src/main/antora
asciidoc:
attributes: