mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Trigger docs build when artifacts are published
Closes gh-40103
This commit is contained in:
parent
1a5e3a3373
commit
b7446afff3
18
.github/workflows/build-and-deploy-snapshot.yml
vendored
18
.github/workflows/build-and-deploy-snapshot.yml
vendored
@ -29,6 +29,13 @@ jobs:
|
|||||||
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties
|
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties
|
||||||
echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $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
|
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties
|
||||||
|
- name: Read Version From gradle.properties
|
||||||
|
id: read-version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
version=$(sed -n 's/version=\(.*\)/\1/p' gradle.properties)
|
||||||
|
echo "Version is $version"
|
||||||
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
- name: Build and Publish
|
- name: Build and Publish
|
||||||
id: build
|
id: build
|
||||||
env:
|
env:
|
||||||
@ -51,6 +58,10 @@ jobs:
|
|||||||
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
artifact-properties: |
|
artifact-properties: |
|
||||||
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false
|
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false
|
||||||
|
- name: Trigger Docs Build Workflow
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.ref_name }} -f build-version=${{ steps.read-version.outputs.version }}
|
||||||
- name: Send Notification
|
- name: Send Notification
|
||||||
uses: ./.github/actions/send-notification
|
uses: ./.github/actions/send-notification
|
||||||
if: always()
|
if: always()
|
||||||
@ -59,13 +70,6 @@ jobs:
|
|||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
build-scan-url: ${{ steps.build.outputs.build-scan-url }}
|
build-scan-url: ${{ steps.build.outputs.build-scan-url }}
|
||||||
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
|
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
|
||||||
- name: Read Version From gradle.properties
|
|
||||||
id: read-version
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
version=$(sed -n 's/version=\(.*\)/\1/p' gradle.properties)
|
|
||||||
echo "Version is $version"
|
|
||||||
echo "version=$version" >> $GITHUB_OUTPUT
|
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.read-version.outputs.version }}
|
version: ${{ steps.read-version.outputs.version }}
|
||||||
run-verification-tests:
|
run-verification-tests:
|
||||||
|
Loading…
Reference in New Issue
Block a user