|
1 | 1 | name: Release |
2 | 2 | on: |
3 | 3 | push: |
4 | | - tags: |
5 | | - - v4.1.[0-9]+ |
| 4 | + branches: |
| 5 | + - release-4.1.3-hotfix |
6 | 6 | permissions: |
7 | 7 | contents: read |
8 | 8 | concurrency: |
9 | 9 | group: ${{ github.workflow }}-${{ github.ref }} |
10 | 10 | jobs: |
11 | | - build-and-stage-release: |
12 | | - name: Build and Stage Release |
13 | | - if: ${{ github.repository == 'spring-projects/spring-ws' }} |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - name: Check Out Code |
17 | | - uses: actions/checkout@v5 |
18 | | - - name: Build and Publish |
19 | | - id: build-and-publish |
20 | | - uses: ./.github/actions/build |
21 | | - with: |
22 | | - develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
23 | | - publish: true |
24 | | - - name: Stage Release |
25 | | - uses: spring-io/artifactory-deploy-action@926d7f7cc810569395346bf3a4d91b380b3e355b # v0.0.4 |
26 | | - with: |
27 | | - artifact-properties: | |
28 | | - /**/spring-ws-docs-*.zip::zip.type=docs,zip.name=spring-ws,zip.deployed=false |
29 | | - build-name: ${{ format('spring-ws-{0}', steps.build-and-publish.outputs.version)}} |
30 | | - folder: 'deployment-repository' |
31 | | - password: ${{ secrets.ARTIFACTORY_PASSWORD }} |
32 | | - repository: 'libs-staging-local' |
33 | | - signing-key: ${{ secrets.GPG_PRIVATE_KEY }} |
34 | | - signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} |
35 | | - uri: 'https://repo.spring.io' |
36 | | - username: ${{ secrets.ARTIFACTORY_USERNAME }} |
37 | | - outputs: |
38 | | - version: ${{ steps.build-and-publish.outputs.version }} |
39 | | - verify: |
40 | | - name: Verify |
41 | | - needs: build-and-stage-release |
42 | | - uses: ./.github/workflows/verify.yml |
43 | | - secrets: |
44 | | - google-chat-webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }} |
45 | | - repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }} |
46 | | - repository-username: ${{ secrets.ARTIFACTORY_USERNAME }} |
47 | | - token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |
48 | | - with: |
49 | | - staging: true |
50 | | - version: ${{ needs.build-and-stage-release.outputs.version }} |
51 | | - sync-to-maven-central: |
52 | | - name: Sync to Maven Central |
53 | | - needs: |
54 | | - - build-and-stage-release |
55 | | - - verify |
56 | | - runs-on: ubuntu-latest |
57 | | - steps: |
58 | | - - name: Check Out Code |
59 | | - uses: actions/checkout@v5 |
60 | | - - name: Sync to Maven Central |
61 | | - uses: ./.github/actions/sync-to-maven-central |
62 | | - with: |
63 | | - central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }} |
64 | | - central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }} |
65 | | - jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }} |
66 | | - spring-ws-version: ${{ needs.build-and-stage-release.outputs.version }} |
67 | 11 | promote-release: |
68 | 12 | name: Promote Release |
69 | | - needs: |
70 | | - - build-and-stage-release |
71 | | - - sync-to-maven-central |
72 | 13 | runs-on: ubuntu-latest |
73 | 14 | steps: |
74 | 15 | - name: Set up JFrog CLI |
75 | 16 | uses: jfrog/setup-jfrog-cli@5b06f730cc5a6f55d78b30753f8583454b08c0aa # v4.8.1 |
76 | 17 | env: |
77 | 18 | JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }} |
78 | 19 | - name: Promote build |
79 | | - run: jfrog rt build-promote ${{ format('spring-ws-{0}', needs.build-and-stage-release.outputs.version)}} ${{ github.run_number }} libs-release-local |
| 20 | + run: jfrog rt build-promote spring-ws-4.1.3 13 libs-release-local |
80 | 21 | create-github-release: |
81 | 22 | name: Create GitHub Release |
82 | 23 | needs: |
83 | | - - build-and-stage-release |
84 | 24 | - promote-release |
85 | 25 | runs-on: ubuntu-latest |
86 | 26 | steps: |
|
89 | 29 | - name: Create GitHub Release |
90 | 30 | uses: ./.github/actions/create-github-release |
91 | 31 | with: |
92 | | - milestone: ${{ needs.build-and-stage-release.outputs.version }} |
| 32 | + milestone: 4.1.3 |
93 | 33 | token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |
0 commit comments