Skip to content

Commit b174d11

Browse files
committed
Automate Releases
Closes gh-856
1 parent 8543cdb commit b174d11

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Scheduler
2+
3+
on:
4+
schedule:
5+
- cron: '15 13 * * THU' # Every Tuesday at 13:15pm UTC
6+
workflow_dispatch:
7+
8+
permissions: read-all
9+
10+
jobs:
11+
dispatch_scheduled_releases:
12+
name: Dispatch scheduled releases
13+
if: ${{ github.repository_owner == 'spring-projects' }}
14+
strategy:
15+
matrix:
16+
# List of active maintenance branches.
17+
branch: [ main, 3.1.x, 2.4.x ]
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 1
24+
- name: Dispatch
25+
env:
26+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
27+
run: gh workflow run update-scheduled-release-version.yml -r ${{ matrix.branch }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Update Scheduled Release Version
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only. Triggered by release-scheduler.yml on main.
5+
6+
jobs:
7+
update-scheduled-release-version:
8+
name: Update Scheduled Release Version
9+
uses: spring-io/spring-security-release-tools/.github/workflows/update-scheduled-release-version.yml@v1
10+
secrets: inherit

build.gradle

+12-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ buildscript {
2121

2222
apply plugin: 'io.spring.convention.root'
2323
apply plugin: 'io.spring.convention.docs'
24+
apply plugin: 'io.spring.security.release'
2425

2526
group = "org.springframework.ldap"
2627
description = "Spring LDAP"
@@ -54,4 +55,14 @@ asciidoctor {
5455
options = [
5556
eruby: 'erubis'
5657
]
57-
}
58+
}
59+
60+
springRelease {
61+
repositoryOwner = "spring-projects"
62+
repositoryName = "spring-ldap"
63+
weekOfMonth = 2
64+
dayOfWeek = 4
65+
referenceDocUrl = "https://docs.spring.io/spring-ldap/reference/{version}/index.html"
66+
apiDocUrl = "https://docs.spring.io/spring-ldap/docs/{version}/api/"
67+
replaceSnapshotVersionInReferenceDocUrl = true
68+
}

buildSrc/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ dependencies {
8989
implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
9090
implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
9191
implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
92+
implementation 'io.spring.gradle:spring-security-release-plugin:1.0.1'
9293
implementation 'io.spring.nohttp:nohttp-gradle:0.0.10'
9394
implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
9495
implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'

0 commit comments

Comments
 (0)