-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare snapshot workflow for addition of release workflow
- Loading branch information
1 parent
6cc618e
commit 2ddde6f
Showing
3 changed files
with
71 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build | ||
description: Builds the plugin | ||
inputs: | ||
develocity-access-key: | ||
description: Access key for authentication with https://ge.spring.io | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Java | ||
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | ||
with: | ||
distribution: 'liberica' | ||
java-version: 8 | ||
- name: Set Up Gradle | ||
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 | ||
- name: Configure Gradle Properties | ||
shell: bash | ||
run: | | ||
mkdir -p $HOME/.gradle | ||
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties | ||
echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $HOME/.gradle/gradle.properties | ||
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties | ||
- name: Build and Publish | ||
env: | ||
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }} | ||
run: ./gradlew -PdeploymentRepository=$(pwd)/artifactory build publishAllPublicationsToDeploymentRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Deploy to Artifactory | ||
description: Deploys artifacts to Artifactory | ||
inputs: | ||
build-name-version: | ||
description: 'Version to append to the build name' | ||
required: true | ||
repository: | ||
description: 'Artifactory repository to deploy to' | ||
required: false | ||
default: 'plugins-snapshot-local' | ||
username: | ||
description: 'Username for authentication with Artifactory' | ||
required: true | ||
password: | ||
description: 'Password for authentication with Artifactory' | ||
required: true | ||
signing-key: | ||
description: 'Key used to sign artifacts' | ||
required: true | ||
signing-passphrase: | ||
description: 'Passphrase for the signing key' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Deploy | ||
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1 | ||
with: | ||
artifact-properties: | | ||
/**/dependency-management-plugin-*.zip::zip.type=docs,zip.deployed=false | ||
build-name: ${{ format('dependency-management-plugin-{0}', inputs.build-name-version }} | ||
folder: 'artifactory' | ||
username: ${{ inputs.username }} | ||
password: ${{ inputs.password }} | ||
repository: ${{ inputs.repository }} | ||
signing-key: ${{ inputs.signing-key }} | ||
signing-passphrase: ${{ inputs.signing-passphrase }} | ||
uri: 'https://repo.spring.io' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters