@@ -16,94 +16,16 @@ permissions:
16
16
17
17
jobs :
18
18
build :
19
- name : Build
20
- uses : spring-io/spring-security-release-tools/.github/workflows/build.yml@v1
21
- strategy :
22
- matrix :
23
- os : [ ubuntu-latest, windows-latest ]
24
- jdk : [ 17 ]
25
- with :
26
- runs-on : ${{ matrix.os }}
27
- java-version : ${{ matrix.jdk }}
28
- distribution : temurin
29
- secrets : inherit
30
- test :
31
- name : Test Against Snapshots
32
- uses : spring-io/spring-security-release-tools/.github/workflows/test.yml@v1
33
- strategy :
34
- matrix :
35
- include :
36
- - java-version : 21-ea
37
- toolchain : 21
38
- - java-version : 17
39
- toolchain : 17
40
- with :
41
- java-version : ${{ matrix.java-version }}
42
- test-args : --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=${{ matrix.toolchain }} -PspringFrameworkVersion=6.2.+ -PreactorVersion=2023.0.+ -PspringDataVersion=2024.0.+ --stacktrace
43
- secrets : inherit
44
- check-samples :
45
- name : Check Samples
19
+ name : Fail on purpose
46
20
runs-on : ubuntu-latest
47
- if : ${{ github.repository_owner == 'spring-projects' }}
48
- steps :
49
- - uses : actions/checkout@v4
50
- - name : Set up gradle
51
- uses : spring-io/spring-gradle-build-action@v2
52
- with :
53
- java-version : 17
54
- distribution : temurin
55
- - name : Check samples project
56
- env :
57
- LOCAL_REPOSITORY_PATH : ${{ github.workspace }}/build/publications/repos
58
- SAMPLES_DIR : ../spring-security-samples
59
- run : |
60
- # Extract version from gradle.properties
61
- version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
62
- # Extract samplesBranch from gradle.properties
63
- samples_branch=$(cat gradle.properties | grep "samplesBranch=" | awk -F'=' '{print $2}')
64
- ./gradlew publishMavenJavaPublicationToLocalRepository
65
- ./gradlew cloneRepository -PrepositoryName="spring-projects/spring-security-samples" -Pref="$samples_branch" -PcloneOutputDirectory="$SAMPLES_DIR"
66
- ./gradlew --refresh-dependencies --project-dir "$SAMPLES_DIR" --init-script spring-security-ci.gradle -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" -PspringSecurityVersion="$version" test integrationTest
67
- deploy-artifacts :
68
- name : Deploy Artifacts
69
- needs : [ build, test, check-samples ]
70
- uses : spring-io/spring-security-release-tools/.github/workflows/deploy-artifacts.yml@v1
71
- with :
72
- should-deploy-artifacts : ${{ needs.build.outputs.should-deploy-artifacts }}
73
- secrets : inherit
74
- deploy-docs :
75
- name : Deploy Docs
76
- needs : [ build, test, check-samples ]
77
- uses : spring-io/spring-security-release-tools/.github/workflows/deploy-docs.yml@v1
78
- with :
79
- should-deploy-docs : ${{ needs.build.outputs.should-deploy-artifacts }}
80
- secrets : inherit
81
- deploy-schema :
82
- name : Deploy Schema
83
- needs : [ build, test, check-samples ]
84
- uses : spring-io/spring-security-release-tools/.github/workflows/deploy-schema.yml@v1
85
- with :
86
- should-deploy-schema : ${{ needs.build.outputs.should-deploy-artifacts }}
87
- secrets : inherit
88
- perform-release :
89
- name : Perform Release
90
- needs : [ deploy-artifacts, deploy-docs, deploy-schema ]
91
- uses : spring-io/spring-security-release-tools/.github/workflows/perform-release.yml@v1
92
- with :
93
- should-perform-release : ${{ needs.deploy-artifacts.outputs.artifacts-deployed }}
94
- project-version : ${{ needs.deploy-artifacts.outputs.project-version }}
95
- milestone-repo-url : https://repo.spring.io/artifactory/milestone
96
- release-repo-url : https://repo1.maven.org/maven2
97
- artifact-path : org/springframework/security/spring-security-core
98
- slack-announcing-id : spring-security-announcing
99
- secrets : inherit
21
+ run : notFound
100
22
send-notification :
101
23
name : Send Notification
102
24
needs : [ perform-release ]
103
25
if : ${{ !success() }}
104
26
runs-on : ubuntu-latest
105
27
steps :
106
28
- name : Send Notification
107
- uses : spring-io/spring-security-release-tools/.github/actions/send-notification@v1
29
+ uses : spring-io/spring-security-release-tools/.github/actions/send-notification@main
108
30
with :
109
31
webhook-url : ${{ secrets.SPRING_SECURITY_CI_GCHAT_WEBHOOK_URL }}
0 commit comments