From b2b68e8e948de7d031d349fc53fc1d130e6b62c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lipski?= Date: Wed, 26 Jun 2024 13:25:46 +0200 Subject: [PATCH] Add `LOCAL-ONLY-ci-release-http-debug.properties` + drop snapshot release (#411) * Add `LOCAL-ONLY-ci-release-http-debug.properties` * Drop snapshot release --- .github/workflows/standard-workflow.yml | 18 ------------------ LOCAL-ONLY-ci-release-http-debug.properties | 11 +++++++++++ 2 files changed, 11 insertions(+), 18 deletions(-) create mode 100644 LOCAL-ONLY-ci-release-http-debug.properties diff --git a/.github/workflows/standard-workflow.yml b/.github/workflows/standard-workflow.yml index 8f20a8b6..a3e57b1c 100644 --- a/.github/workflows/standard-workflow.yml +++ b/.github/workflows/standard-workflow.yml @@ -140,21 +140,3 @@ jobs: - run: git config core.sshCommand "ssh -i $HOME/.ssh/psh" - run: git push --force git@github.com:VirtusLab/pekko-serialization-helper.git HEAD:main # - - publish-maven-artifacts: - needs: [code-style-check, test-212, test-213, test-sbt-plugin, run-examples] - if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: coursier/cache-action@v6 - - uses: coursier/setup-action@v1 - - - run: git fetch --tags - - name: Publish Maven artifacts - run: sbt ci-release - env: - PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} - PGP_SECRET: ${{ secrets.PGP_SECRET }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/LOCAL-ONLY-ci-release-http-debug.properties b/LOCAL-ONLY-ci-release-http-debug.properties new file mode 100644 index 00000000..1e8f36f8 --- /dev/null +++ b/LOCAL-ONLY-ci-release-http-debug.properties @@ -0,0 +1,11 @@ +# In case of `java.net.ProtocolException: Server redirected too many times (20)` +# when publishing to Sonatype (https://github.com/sbt/sbt-ci-release/issues/173), +# use `sbt -Djava.util.logging.config.file=LOCAL-ONLY-ci-release-http-debug.properties ci-release` to see the reason for redirect. +# Most likely it's going to be 401 Unauthorized (so not really a redirect, btw :p) +# Source: https://stackoverflow.com/a/12339718 +handlers=java.util.logging.ConsoleHandler +java.util.logging.ConsoleHandler.level=FINEST +sun.net.www.protocol.http.HttpURLConnection.level=ALL + +# DO NOT USE THIS CONFIG IN CI!!! +# This causes Authorization header to be logged in plaintext!!!!