|
|
|
|
@ -8,7 +8,7 @@ concurrency:
@@ -8,7 +8,7 @@ concurrency:
|
|
|
|
|
jobs: |
|
|
|
|
build-and-deploy-snapshot: |
|
|
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }} |
|
|
|
|
name: Build and deploy snapshot |
|
|
|
|
name: Build and Deploy Snapshot |
|
|
|
|
runs-on: ubuntu22-8-32 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Java |
|
|
|
|
@ -16,20 +16,20 @@ jobs:
@@ -16,20 +16,20 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
distribution: 'liberica' |
|
|
|
|
java-version: 17 |
|
|
|
|
- name: Check out code |
|
|
|
|
- name: Checkout |
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Gradle |
|
|
|
|
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 |
|
|
|
|
with: |
|
|
|
|
cache-read-only: false |
|
|
|
|
- name: Configure Gradle properties |
|
|
|
|
- name: Configure Gradle Properties |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
mkdir -p $HOME/.gradle |
|
|
|
|
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties |
|
|
|
|
echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $HOME/.gradle/gradle.properties |
|
|
|
|
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties |
|
|
|
|
- name: Build and publish |
|
|
|
|
- name: Build and Publish |
|
|
|
|
id: build |
|
|
|
|
env: |
|
|
|
|
CI: 'true' |
|
|
|
|
@ -51,7 +51,7 @@ jobs:
@@ -51,7 +51,7 @@ jobs:
|
|
|
|
|
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} |
|
|
|
|
artifact-properties: | |
|
|
|
|
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false |
|
|
|
|
- name: Send notification |
|
|
|
|
- name: Send Notification |
|
|
|
|
uses: ./.github/actions/send-notification |
|
|
|
|
if: always() |
|
|
|
|
with: |
|
|
|
|
@ -59,7 +59,7 @@ jobs:
@@ -59,7 +59,7 @@ jobs:
|
|
|
|
|
status: ${{ job.status }} |
|
|
|
|
build-scan-url: ${{ steps.build.outputs.build-scan-url }} |
|
|
|
|
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }} |
|
|
|
|
- name: Read version from gradle.properties |
|
|
|
|
- name: Read Version From gradle.properties |
|
|
|
|
id: read-version |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
@ -73,13 +73,13 @@ jobs:
@@ -73,13 +73,13 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-deploy-snapshot |
|
|
|
|
steps: |
|
|
|
|
- name: Check out release verification tests |
|
|
|
|
- name: Checkout Release Verification Tests |
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
|
repository: spring-projects/spring-boot-release-verification |
|
|
|
|
ref: 'main' |
|
|
|
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |
|
|
|
|
- name: Check out send notification action |
|
|
|
|
- name: Checkout Send Notification Action |
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
with: |
|
|
|
|
path: spring-boot |
|
|
|
|
@ -93,23 +93,23 @@ jobs:
@@ -93,23 +93,23 @@ jobs:
|
|
|
|
|
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 |
|
|
|
|
with: |
|
|
|
|
cache-read-only: false |
|
|
|
|
- name: Configure Gradle properties |
|
|
|
|
- name: Configure Gradle Properties |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
mkdir -p $HOME/.gradle |
|
|
|
|
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties |
|
|
|
|
- name: Run release verification tests |
|
|
|
|
- name: Run Release Verification Tests |
|
|
|
|
env: |
|
|
|
|
RVT_VERSION: ${{ needs.build-and-deploy-snapshot.outputs.version }} |
|
|
|
|
RVT_RELEASE_TYPE: oss |
|
|
|
|
run: ./gradlew spring-boot-release-verification-tests:test |
|
|
|
|
- name: Upload build reports on failure |
|
|
|
|
- name: Upload Build Reports on Failure |
|
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
if: failure() |
|
|
|
|
with: |
|
|
|
|
name: build-reports |
|
|
|
|
path: '**/build/reports/' |
|
|
|
|
- name: Send notification |
|
|
|
|
- name: Send Notification |
|
|
|
|
uses: ./spring-boot/.github/actions/send-notification |
|
|
|
|
if: always() |
|
|
|
|
with: |
|
|
|
|
|