Skip to content

Commit

Permalink
Export...
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Jun 19, 2024
1 parent 2ef4dd0 commit 2aa00e8
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2aa00e8

Please sign in to comment.