Skip to content

Commit

Permalink
Add LOCAL-ONLY-ci-release-http-debug.properties + drop snapshot rel…
Browse files Browse the repository at this point in the history
…ease (#411)

* Add `LOCAL-ONLY-ci-release-http-debug.properties`

* Drop snapshot release
  • Loading branch information
PawelLipski authored Jun 26, 2024
1 parent 6b3be9e commit b2b68e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/standard-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# <PEKKO-REMOVE-END>

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 }}
11 changes: 11 additions & 0 deletions LOCAL-ONLY-ci-release-http-debug.properties
Original file line number Diff line number Diff line change
@@ -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!!!!

0 comments on commit b2b68e8

Please sign in to comment.