Skip to content

Commit b10e656

Browse files
committed
Use spring-release-actions/update-learn-page
Replace the local `spring-website-project-version-update` action with the `spring-io/spring-release-actions/update-learn-page`
1 parent c691256 commit b10e656

3 files changed

Lines changed: 7 additions & 102 deletions

File tree

.github/actions/spring-website-project-version-update/action.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/spring-finalize-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/setup-java@v5
3232
with:
3333
distribution: temurin
34-
java-version: 24
34+
java-version: 25
3535

3636
- name: Tag Release and Next Development Version
3737
id: tag-release
@@ -113,10 +113,10 @@ jobs:
113113
show-progress: false
114114

115115
- name: Update Spring IO website for new version
116-
uses: ./.github/spring-github-workflows/.github/actions/spring-website-project-version-update
116+
uses: spring-io/spring-release-actions/update-learn-page@0.0.2
117117
with:
118-
newVersion: ${{ inputs.milestone }}
119-
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
118+
version: ${{ inputs.milestone }}
119+
website-token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
120120

121121
- name: Announce Release in Chat
122122
if: env.CHAT_WEBHOOK_URL

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,12 @@ This job stages released artifacts using JFrog Artifactory plugin into `libs-sta
8282
- Then [spring-finalize-release.yml](.github/workflows/spring-finalize-release.yml) job is executed, which tags release into GitHub, commits next development version, generates release notes using [Spring Changelog Generator](https://github.com/spring-io/github-changelog-generator) excluding repository admins from `Contributors` section.
8383
The `gh release create` command is performed on a tag for a just released version.
8484
Then `spring.io` project page is updated for a newly released version.
85-
(The [spring-website-project-version-update](.github/actions/spring-website-project-version-update) local action is implemented for this goal).
8685
And in the end the milestone closed, and specific Google Space notified about release (if `SPRING_RELEASE_CHAT_WEBHOOK_URL` secret is present in the repository).
8786

8887
#### Example of Release caller workflow:
8988
https://github.com/spring-io/spring-github-workflows/blob/88d5c5f78e88d00b9ad18885438d4e3657433ccf/samples/release-with-gradle.yml#L1-L24
9089

91-
Such a workflow must be on every branch that is supposed to be released via GitHub actions.
90+
Such a workflow must be on every branch supposed to be released via GitHub actions.
9291

9392
The `buildToolArgs` parameter for this job means extra build tool arguments.
9493
For example, the mentioned `dist` value is a Gradle task in the project.
@@ -106,13 +105,13 @@ https://github.com/spring-io/spring-github-workflows/blob/78b29123a17655f019d800
106105
> **Warning**
107106
> The [spring-artifactory-gradle-release.yml](.github/workflows/spring-artifactory-gradle-release.yml) (and [spring-artifactory-maven-release.yml](.github/workflows/spring-artifactory-maven-release.yml)) already uses 3 of 4 levels of nested reusable workflows.
108107
> Where the caller workflow is the last one.
109-
> Therefore don't try to reuse your caller workflow.
108+
> Therefore, don't try to reuse your caller workflow.
110109
111110
## Verify Staged Artifacts
112111

113112
The `verify-staged` job expects an optional `verifyStagedWorkflow` input (the `verify-staged-artifacts.yml`, by default) workflow supplied from the target project.
114113
For example, [Spring Integration for AWS](https://github.com/spring-projects/spring-integration-aws) uses `jfrog rt download` command to verify that released `spring-integration-aws-${{ inputs.releaseVersion }}.jar` is valid.
115-
Other projects may check out their samples repository and set up release version to perform smoke tests against just staged artifacts.
114+
Other projects may check out their samples repository and set up a release version to perform smoke tests against just staged artifacts.
116115

117116
#### Verify the staged workflow sample:
118117
https://github.com/spring-io/spring-github-workflows/blob/78b29123a17655f019d800690cc906d692f836a9/samples/verify-staged-artifacts.yml#L1-L28

0 commit comments

Comments
 (0)