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:
4
.github/workflows/deploy-docs.yml
vendored
4
.github/workflows/deploy-docs.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user