Skip to content

Commit 3cb32f7

Browse files
committed
Update generated GitHub Actions workflow files [skip actions]
1 parent 469a761 commit 3cb32f7

4 files changed

Lines changed: 95 additions & 2 deletions

File tree

.github/actions/release-train-build/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@ name: Build Release
22
runs:
33
using: composite
44
steps:
5-
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-build@55cb11377657bcec9a0a89456094e0d5cdb35d2f
5+
- name: Build Release
6+
shell: bash
7+
# If we are on Java 8 we need to build the docs zip for jubilee projects so it is distributed as part of the release
8+
run: |
9+
if java -version 2>&1 | grep -q '1\.8\.'; then
10+
./mvnw --no-transfer-progress --batch-mode --settings release-train-settings.xml clean deploy --activate-profiles releaseTrain,docs -DaltDeploymentRepository="release-train::default::file://$(pwd)/deployment-repository" -DskipTests
11+
else
12+
./mvnw --no-transfer-progress --batch-mode --settings release-train-settings.xml clean deploy --activate-profiles releaseTrain -DaltDeploymentRepository="release-train::default::file://$(pwd)/deployment-repository" -DskipTests
13+
fi
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
artifactory:
2+
artifacts:
3+
- pattern: "/**/spring-cloud-*-docs-*.zip"
4+
properties:
5+
zip.deployed: "false"
6+
zip.type: "docs"
7+
- pattern: "/**/spring-cloud-docs-*.zip"
8+
properties:
9+
zip.deployed: "false"
10+
zip.type: "docs"

.github/actions/release-train-test/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ name: Test Release
22
runs:
33
using: composite
44
steps:
5-
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-test@55cb11377657bcec9a0a89456094e0d5cdb35d2f
5+
- name: Test Release
6+
shell: bash
7+
run: ./mvnw --no-transfer-progress --batch-mode --settings release-train-settings.xml clean verify --activate-profiles releaseTrain

release-train-settings.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
4+
5+
<servers>
6+
<server>
7+
<id>release-train</id>
8+
<username>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME}</username>
9+
<password>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD}</password>
10+
</server>
11+
<server>
12+
<id>spring-commercial-snapshot</id>
13+
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
14+
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
15+
</server>
16+
<server>
17+
<id>spring-commercial-release</id>
18+
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
19+
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
20+
</server>
21+
<server>
22+
<id>repo-spring-io-spring-commercial-snapshot</id>
23+
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
24+
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
25+
</server>
26+
<server>
27+
<id>repo-spring-io-spring-commercial-release</id>
28+
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
29+
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
30+
</server>
31+
</servers>
32+
33+
<mirrors>
34+
<mirror>
35+
<!-- This redirects the spring-snapshots repo to the release-train repo -->
36+
<id>release-train</id>
37+
<mirrorOf>spring-snapshots</mirrorOf>
38+
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
39+
</mirror>
40+
</mirrors>
41+
42+
<profiles>
43+
<profile>
44+
<id>releaseTrain</id>
45+
<repositories>
46+
<repository>
47+
<id>release-train</id>
48+
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
49+
<releases>
50+
<enabled>true</enabled>
51+
</releases>
52+
<snapshots>
53+
<enabled>true</enabled>
54+
<updatePolicy>always</updatePolicy>
55+
</snapshots>
56+
</repository>
57+
</repositories>
58+
<pluginRepositories>
59+
<pluginRepository>
60+
<id>release-train</id>
61+
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
62+
<releases>
63+
<enabled>true</enabled>
64+
</releases>
65+
<snapshots>
66+
<enabled>true</enabled>
67+
<updatePolicy>always</updatePolicy>
68+
</snapshots>
69+
</pluginRepository>
70+
</pluginRepositories>
71+
</profile>
72+
</profiles>
73+
</settings>

0 commit comments

Comments
 (0)