Skip to content

Commit 14dba6f

Browse files
committed
chore(#2299): add flag to copy docs to /current direction
1 parent beba540 commit 14dba6f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release-to-maven-central.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66
releaseversion:
77
description: 'Release version'
88
required: true
9-
default: '2.4.0'
9+
default: '3.0.0'
10+
copyDocsToCurrent:
11+
required: true
12+
type: boolean
13+
default: false
1014

1115
jobs:
1216
publish-central-and-pages:
@@ -69,6 +73,15 @@ jobs:
6973
target-folder: ${{ github.event.inputs.releaseversion }}
7074
clean: true # Automatically remove deleted files from the deploy branch
7175

76+
- name: Deploy Asciidoc docs output to GitHub Pages
77+
uses: JamesIves/[email protected]
78+
if: ${{ github.event.inputs.copyDocsToCurrent }}
79+
with:
80+
branch: gh-pages # The branch the action should deploy to.
81+
folder: spring-boot-admin-docs/target/generated-docs # The folder the action should deploy.
82+
target-folder: /current
83+
clean: true # Automatically remove deleted files from the deploy branch
84+
7285

7386
publish-github-release:
7487
needs: publish-central-and-pages

0 commit comments

Comments
 (0)