|
| 1 | +name: Publicize Release |
| 2 | +on: |
| 3 | + push: |
| 4 | + branch: 'temp/publicize-release' |
| 5 | +concurrency: |
| 6 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 7 | +jobs: |
| 8 | + read-version: |
| 9 | + name: Read Version |
| 10 | + runs-on: 'ubuntu-latest' |
| 11 | + steps: |
| 12 | + - name: Check Out Code |
| 13 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 14 | + with: |
| 15 | + ref: v4.1.1 |
| 16 | + - name: Read Version From gradle.properties |
| 17 | + id: read-version |
| 18 | + shell: bash |
| 19 | + run: | |
| 20 | + version=$(sed -n 's/version=\(.*\)/\1/p' gradle.properties) |
| 21 | + echo "Version is $version" |
| 22 | + echo "version=$version" >> $GITHUB_OUTPUT |
| 23 | + outputs: |
| 24 | + version: ${{ steps.read-version.outputs.version }} |
| 25 | + publish-gradle-plugin: |
| 26 | + name: Publish Gradle Plugin |
| 27 | + if: ${{ !vars.COMMERCIAL }} |
| 28 | + needs: |
| 29 | + - read-version |
| 30 | + runs-on: 'ubuntu-latest' |
| 31 | + steps: |
| 32 | + - name: Check Out Code |
| 33 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 34 | + with: |
| 35 | + ref: v4.1.1 |
| 36 | + - name: Publish |
| 37 | + uses: ./.github/actions/publish-gradle-plugin |
| 38 | + with: |
| 39 | + gradle-plugin-publish-key: ${{ secrets.GRADLE_PLUGIN_PUBLISH_KEY }} |
| 40 | + gradle-plugin-publish-secret: ${{ secrets.GRADLE_PLUGIN_PUBLISH_SECRET }} |
| 41 | + jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }} |
| 42 | + plugin-version: ${{ needs.read-version.outputs.version }} |
| 43 | + publish-to-sdkman: |
| 44 | + name: Publish to SDKMAN! |
| 45 | + needs: |
| 46 | + - read-version |
| 47 | + runs-on: 'ubuntu-latest' |
| 48 | + steps: |
| 49 | + - name: Check Out Code |
| 50 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 51 | + with: |
| 52 | + ref: v4.1.1 |
| 53 | + - name: Publish to SDKMAN! |
| 54 | + uses: ./.github/actions/publish-to-sdkman |
| 55 | + with: |
| 56 | + make-default: false |
| 57 | + sdkman-consumer-key: ${{ secrets.SDKMAN_CONSUMER_KEY }} |
| 58 | + sdkman-consumer-token: ${{ secrets.SDKMAN_CONSUMER_TOKEN }} |
| 59 | + spring-boot-version: ${{ needs.read-version.outputs.version }} |
| 60 | + update-homebrew-tap: |
| 61 | + name: Update Homebrew Tap |
| 62 | + needs: |
| 63 | + - read-version |
| 64 | + runs-on: 'ubuntu-latest' |
| 65 | + steps: |
| 66 | + - name: Check Out Code |
| 67 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 68 | + with: |
| 69 | + ref: v4.1.1 |
| 70 | + - name: Update Homebrew Tap |
| 71 | + uses: ./.github/actions/update-homebrew-tap |
| 72 | + with: |
| 73 | + spring-boot-version: ${{ needs.read-version.outputs.version }} |
| 74 | + token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |
| 75 | + trigger-docs-build: |
| 76 | + name: Trigger Docs Build |
| 77 | + needs: |
| 78 | + - read-version |
| 79 | + permissions: |
| 80 | + actions: write |
| 81 | + runs-on: 'ubuntu-latest' |
| 82 | + steps: |
| 83 | + - name: Run Deploy Docs Workflow |
| 84 | + env: |
| 85 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 86 | + run: gh workflow run deploy-docs.yml --repo ${{ github.repository }} -r docs-build -f build-refname=v4.1.1 -f build-version=${{ needs.read-version.outputs.version }} |
| 87 | + create-github-release: |
| 88 | + name: Create GitHub Release |
| 89 | + needs: |
| 90 | + - read-version |
| 91 | + - publish-gradle-plugin |
| 92 | + - publish-to-sdkman |
| 93 | + - trigger-docs-build |
| 94 | + - update-homebrew-tap |
| 95 | + runs-on: 'ubuntu-latest' |
| 96 | + steps: |
| 97 | + - name: Check Out Code |
| 98 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 99 | + with: |
| 100 | + ref: v4.1.1 |
| 101 | + - name: Create GitHub Release |
| 102 | + uses: ./.github/actions/create-github-release |
| 103 | + with: |
| 104 | + commercial: ${{ vars.COMMERCIAL }} |
| 105 | + latest: true |
| 106 | + milestone: ${{ needs.read-version.outputs.version }} |
| 107 | + token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |
0 commit comments