Skip to content

Commit 9345231

Browse files
committed
Update release workflows
- Disable tests on staging - Increase Maven Central promotion timeout - Add workflow to tag a release
1 parent 07eb909 commit 9345231

File tree

4 files changed

+53
-24
lines changed

4 files changed

+53
-24
lines changed

.github/workflows/next-dev-version.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/release-ga.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
with:
2929
token: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3030
token-name: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
31-
timeout: 60m
31+
timeout: 90m

.github/workflows/stage-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: ./mvnw org.apache.maven.plugins:maven-enforcer-plugin:enforce -Drules=requireReleaseDeps
3030

3131
- name: Build with Maven
32-
run: ./mvnw -DaltDeploymentRepository=local::file:deployment-repository --no-transfer-progress --batch-mode --update-snapshots deploy
32+
run: ./mvnw -DaltDeploymentRepository=local::file:deployment-repository --no-transfer-progress --batch-mode --update-snapshots -Dmaven.test.skip=true deploy
3333

3434
- name: Deploy to Artifactory
3535
uses: spring-io/[email protected]
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Tag release and move to next development version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: "Release version"
8+
required: true
9+
snapshotVersion:
10+
description: "Next snapshot version"
11+
required: true
12+
13+
jobs:
14+
15+
release:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
steps:
20+
- name: Checkout source code
21+
uses: actions/[email protected]
22+
23+
- name: Set up JDK 17
24+
uses: actions/[email protected]
25+
with:
26+
java-version: '17'
27+
distribution: 'temurin'
28+
cache: 'maven'
29+
30+
- name: Set up git
31+
run: |
32+
git config --global user.name 'github-actions[bot]'
33+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
34+
35+
- name: Capture versions
36+
run: |
37+
echo RELEASE_VERSION=${{ github.event.inputs.releaseVersion }} >> $GITHUB_ENV
38+
echo SNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }} >> $GITHUB_ENV
39+
40+
- name: Tag release
41+
run: |
42+
./mvnw versions:set -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION
43+
git commit -a -m "Release version $RELEASE_VERSION"
44+
git tag -a v$RELEASE_VERSION -m "Release version $RELEASE_VERSION"
45+
git push origin v$RELEASE_VERSION
46+
47+
- name: Move to next development version
48+
run: |
49+
./mvnw versions:set -DgenerateBackupPoms=false -DnewVersion=$SNAPSHOT_VERSION
50+
git commit -a -m "Next development version"
51+
git push origin main

0 commit comments

Comments
 (0)