From 2aa00e8b8f38c1276bdfda87dd5854c384519324 Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Wed, 19 Jun 2024 22:40:42 +0100 Subject: [PATCH] Export... --- .github/workflows/reusable-release.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 37c6165..c9f4e85 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -60,17 +60,6 @@ jobs: release_type: ${{ steps.generate-version-suffix.outputs.release_type }} version_suffix: ${{ steps.generate-version-suffix.outputs.version_suffix }} steps: - - name: Check sonatype creds - env: - SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }} - run: | - SONATYPE_USERNAME="${SONATYPE_TOKEN%%:*}" # See https://github.com/xerial/sbt-sonatype/pull/62 - SONATYPE_POOP="${SONATYPE_TOKEN#*:}" - echo "Credential lengths... username=${#SONATYPE_USERNAME} poop=${#SONATYPE_POOP}" - echo ${SONATYPE_USERNAME:0:2} - echo ${SONATYPE_POOP:0:2} - echo ${SONATYPE_USERNAME: -2} - echo ${SONATYPE_POOP: -2} - uses: actions/setup-java@v4 with: distribution: corretto @@ -151,7 +140,6 @@ jobs: sbt_commands_file=$(mktemp) cat << EndOfFile > $sbt_commands_file - show core/credentials set releaseVersion := releaseVersion.value.andThen(_ + "${{ needs.init.outputs.version_suffix }}") release with-defaults EndOfFile @@ -425,15 +413,9 @@ jobs: env: SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }} run: | - SONATYPE_USERNAME="${SONATYPE_TOKEN%%:*}" # See https://github.com/xerial/sbt-sonatype/pull/62 - SONATYPE_PASSWORD="${SONATYPE_TOKEN#*:}" - echo "Credential lengths... username=${#SONATYPE_USERNAME} poop=${#SONATYPE_PASSWORD}" - echo ${SONATYPE_USERNAME:0:2} - echo ${SONATYPE_PASSWORD:0:2} - echo ${SONATYPE_USERNAME: -2} - echo ${SONATYPE_PASSWORD: -2} - echo "...blumps" - sbt "show core/credentials" + export SONATYPE_USERNAME="${SONATYPE_TOKEN%%:*}" # See https://github.com/xerial/sbt-sonatype/pull/62 + export SONATYPE_PASSWORD="${SONATYPE_TOKEN#*:}" + echo "Credential lengths... u=${#SONATYPE_USERNAME} p=${#SONATYPE_PASSWORD}" sbt "sonatypeBundleRelease" github-release: