File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 2828 with :
2929 token : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3030 token-name : ${{ secrets.CENTRAL_TOKEN_USERNAME }}
31- timeout : 60m
31+ timeout : 90m
Original file line number Diff line number Diff line change 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/artifactory-deploy-action@v0.0.2
Original file line number Diff line number Diff line change 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/checkout@v4.2.2
22+
23+ - name : Set up JDK 17
24+ uses : actions/setup-java@v4.7.1
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
You can’t perform that action at this time.
0 commit comments