Skip to content

Commit

Permalink
Fix deploy-docs.yml content sources (#461)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rwinch authored Sep 25, 2023
1 parent b49233e commit 1d40740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1d40740

Please sign in to comment.