Skip to content

Commit 5a91405

Browse files
committed
Install release tools package to GitHub packages.
1 parent 99e7344 commit 5a91405

File tree

6 files changed

+540
-0
lines changed

6 files changed

+540
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Deploy Spring Data Release Tools
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
8+
permissions: read-all
9+
10+
jobs:
11+
build-and-deploy-snapshots:
12+
name: Build and deploy snapshots
13+
permissions:
14+
packages: write
15+
if: ${{ github.repository_owner == 'spring-projects' }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
- name: Setup Java and Maven
20+
uses: spring-projects/spring-data-build/actions/setup-maven@main
21+
- name: Deploy to GitHub Packages
22+
shell: bash
23+
env:
24+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
25+
run: |
26+
VERSION=$(git rev-parse --short HEAD)
27+
./mvnw -q -B versions:set versions:commit -DgenerateBackupPoms=false -DprocessAllModules=true -DnewVersion=1.0-${VERSION}
28+
./mvnw -s ci/settings.xml -B -Pgithub clean deploy
29+
- name: Test Summary
30+
uses: spring-projects/spring-data-build/actions/test-summary@main
31+
with:
32+
paths: '**/TEST-*.xml'
33+
if: always()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

ci/settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<username>${env.COMMERCIAL_USR}</username>
3939
<password>${env.COMMERCIAL_PSW}</password>
4040
</server>
41+
<server>
42+
<id>github</id>
43+
<username>${env.GITHUB_ACTOR}</username>
44+
<password>${env.GITHUB_TOKEN}</password>
45+
</server>
4146
</servers>
4247

4348
<profiles>

mvnw

Lines changed: 295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)