mirror of
https://github.com/spring-cloud/spring-cloud-build.git
synced 2026-09-17 12:49:00 +00:00
Update generated GitHub Actions workflow files [skip actions]
This commit is contained in:
@@ -2,4 +2,12 @@ name: Build Release
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-build@55cb11377657bcec9a0a89456094e0d5cdb35d2f
|
||||
- name: Build Release
|
||||
shell: bash
|
||||
# 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
|
||||
run: |
|
||||
if java -version 2>&1 | grep -q '1\.8\.'; then
|
||||
./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
|
||||
else
|
||||
./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
|
||||
fi
|
||||
@@ -0,0 +1,10 @@
|
||||
artifactory:
|
||||
artifacts:
|
||||
- pattern: "/**/spring-cloud-*-docs-*.zip"
|
||||
properties:
|
||||
zip.deployed: "false"
|
||||
zip.type: "docs"
|
||||
- pattern: "/**/spring-cloud-docs-*.zip"
|
||||
properties:
|
||||
zip.deployed: "false"
|
||||
zip.type: "docs"
|
||||
@@ -2,4 +2,6 @@ name: Test Release
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-test@55cb11377657bcec9a0a89456094e0d5cdb35d2f
|
||||
- name: Test Release
|
||||
shell: bash
|
||||
run: ./mvnw --no-transfer-progress --batch-mode --settings release-train-settings.xml clean verify --activate-profiles releaseTrain
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
|
||||
<servers>
|
||||
<server>
|
||||
<id>release-train</id>
|
||||
<username>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME}</username>
|
||||
<password>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>spring-commercial-snapshot</id>
|
||||
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
|
||||
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>spring-commercial-release</id>
|
||||
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
|
||||
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>repo-spring-io-spring-commercial-snapshot</id>
|
||||
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
|
||||
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>repo-spring-io-spring-commercial-release</id>
|
||||
<username>${env.COMMERCIAL_REPO_USERNAME}</username>
|
||||
<password>${env.COMMERCIAL_REPO_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<!-- This redirects the spring-snapshots repo to the release-train repo -->
|
||||
<id>release-train</id>
|
||||
<mirrorOf>spring-snapshots</mirrorOf>
|
||||
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>releaseTrain</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>release-train</id>
|
||||
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>release-train</id>
|
||||
<url>${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
||||
Reference in New Issue
Block a user