Skip to content

Commit

Permalink
feat(build): publish to maven central, switch groupId to io.spinnaker…
Browse files Browse the repository at this point in the history
….front50 (#1029)
  • Loading branch information
danielpeach committed Mar 19, 2021
1 parent 3a4c23f commit 34b5415
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ jobs:
echo ::set-output name=RELEASE_VERSION::${RELEASE_VERSION}
- name: Release build
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
RELEASE_VERSION: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_nexusPublishEnabled: true
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_nexusPgpSigningKey: ${{ secrets.NEXUS_PGP_SIGNING_KEY }}
ORG_GRADLE_PROJECT_nexusPgpSigningPassword: ${{ secrets.NEXUS_PGP_SIGNING_PASSWORD }}
run: |
./gradlew --info -Pversion="${RELEASE_VERSION}" -PbintrayUser="${BINTRAY_USER}" -PbintrayKey="${BINTRAY_API_KEY}" -PbintrayPublishDebEnabled=false publish
./gradlew --info publishToNexus closeAndReleaseNexusStagingRepository
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: actions/create-release@v1
Expand All @@ -54,7 +57,7 @@ jobs:
draft: false
prerelease: ${{ steps.release_info.outputs.IS_CANDIDATE }}
- name: Pause before dependency bump
run: sleep 90
run: sleep 900
- name: Trigger dependency bump workflow
uses: peter-evans/repository-dispatch@v1
with:
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ plugins {
id "org.jetbrains.kotlin.plugin.allopen" version "$kotlinVersion" apply false
}

subprojects { project ->
group = "com.netflix.spinnaker.front50"
allprojects {
apply plugin: 'io.spinnaker.project'
}

subprojects { project ->
group = "io.spinnaker.front50"

if ([korkVersion, fiatVersion].find { it.endsWith("-SNAPSHOT") }) {
repositories {
Expand Down

0 comments on commit 34b5415

Please sign in to comment.