diff --git a/.github/actions/release-train-build/action.yml b/.github/actions/release-train-build/action.yml index cbdb642e..4bc52f6c 100644 --- a/.github/actions/release-train-build/action.yml +++ b/.github/actions/release-train-build/action.yml @@ -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 \ No newline at end of file diff --git a/.github/actions/release-train-build/deployment-spec.yml b/.github/actions/release-train-build/deployment-spec.yml new file mode 100644 index 00000000..3ff06796 --- /dev/null +++ b/.github/actions/release-train-build/deployment-spec.yml @@ -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" \ No newline at end of file diff --git a/.github/actions/release-train-test/action.yml b/.github/actions/release-train-test/action.yml index 06e88048..c281351c 100644 --- a/.github/actions/release-train-test/action.yml +++ b/.github/actions/release-train-test/action.yml @@ -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 diff --git a/release-train-settings.xml b/release-train-settings.xml new file mode 100644 index 00000000..8e9dcb90 --- /dev/null +++ b/release-train-settings.xml @@ -0,0 +1,73 @@ + + + + + release-train + ${env.RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME} + ${env.RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD} + + + spring-commercial-snapshot + ${env.COMMERCIAL_REPO_USERNAME} + ${env.COMMERCIAL_REPO_PASSWORD} + + + spring-commercial-release + ${env.COMMERCIAL_REPO_USERNAME} + ${env.COMMERCIAL_REPO_PASSWORD} + + + repo-spring-io-spring-commercial-snapshot + ${env.COMMERCIAL_REPO_USERNAME} + ${env.COMMERCIAL_REPO_PASSWORD} + + + repo-spring-io-spring-commercial-release + ${env.COMMERCIAL_REPO_USERNAME} + ${env.COMMERCIAL_REPO_PASSWORD} + + + + + + + release-train + spring-snapshots + ${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL} + + + + + + releaseTrain + + + release-train + ${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL} + + true + + + true + always + + + + + + release-train + ${env.RELEASE_TRAIN_MAVEN_REPOSITORY_URL} + + true + + + true + always + + + + + +