Skip to content

Commit

Permalink
Merge branch '3.1.x' into 3.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Apr 18, 2024
2 parents 9a28ae1 + 56b59cd commit f84a263
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/actions/publish-gradle-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
gradle-plugin-publish-secret:
description: 'Gradle publishing secret'
required: true
build-number:
description: 'The build number to use when downloading plugin artifacts'
required: false
default: ${{ github.run_number }}
runs:
using: composite
steps:
Expand All @@ -22,13 +26,13 @@ runs:
JF_ENV_SPRING: ${{ inputs.jfrog-cli-config-token }}
- name: Download Artifacts
shell: bash
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-boot-{0}', inputs.plugin-version) }};buildNumber=${{ github.run_number }}'
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-boot-{0}', inputs.plugin-version) }};buildNumber=${{ inputs.build-number }}'
- name: Set Up Java
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '17'
- name: Publish
shell: bash
run: >
./gradlew publishExisting
-p ${{ github.action_path }}
-Pgradle.publish.key=${{ inputs.gradle-plugin-publish-key }}
-Pgradle.publish.secret=${{ inputs.gradle-plugin-publish-secret }}
-PbootVersion=${{ inputs.plugin-version }}
-PrepositoryRoot=$(pwd)/repository
working-directory: ${{ github.action_path }}
run: ${{ github.workspace }}/gradlew publishExisting -Pgradle.publish.key=${{ inputs.gradle-plugin-publish-key }} -Pgradle.publish.secret=${{ inputs.gradle-plugin-publish-secret }} -PbootVersion=${{ inputs.plugin-version }} -PrepositoryRoot=${{ github.workspace }}/repository

0 comments on commit f84a263

Please sign in to comment.