Skip to content

Commit

Permalink
Update release workflow (#239)
Browse files Browse the repository at this point in the history
* Update release workflow

* Use ossrhToken instead

* Add sonatype variables

* remove sonatype for now

* Add sonatype

* Set creds explicitly

* Get variables in a different way

* clutching at straws here

* trying this way

* remove vals

* this way

* Remove myNexus

* Update puglish-plugin version

* Reset to initial myNexus

* Add more logging

* argh

* remove warning mode
  • Loading branch information
Paul Asjes authored Jul 23, 2024
1 parent 183792d commit e2e9b25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
- name: Publish
env:
MAVEN_SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
NEXUS_SIGNING_PASSWORD: ${{ secrets.NEXUS_SIGNING_PASSWORD }}
MAVEN_USER_NAME: ${{ secrets.MAVEN_USER_NAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

run: |
echo $MAVEN_SIGNING_KEY | base64 --decode > signing.key
cat << EOF > gradle.properties
myNexusUsername=${NEXUS_USERNAME}
myNexusPassword=${NEXUS_PASSWORD}
signingPassword=${NEXUS_SIGNING_PASSWORD}
myNexusUsername=${MAVEN_USER_NAME}
myNexusPassword=${MAVEN_PASSWORD}
EOF
./gradlew publishToMyNexus closeAndReleaseMyNexusStagingRepository -Prelease
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {

id("org.jetbrains.dokka") version "1.5.30"

id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"

signing

Expand Down

0 comments on commit e2e9b25

Please sign in to comment.