Skip to content

Commit

Permalink
feat(ci): add initial release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Aug 2, 2023
1 parent b86db32 commit c74101f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
- name: Publish Snapshot
if: github.event_name != 'schedule'
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
NEXUS_USERNAME: ${{ secrets.OSSRH_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
./gradlew currentVersion
./gradlew publishToSonatype -Prelease.forceSnapshot
4 changes: 2 additions & 2 deletions .github/workflows/build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ jobs:
cache: 'gradle'
- name: Publish Snapshot
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
NEXUS_USERNAME: ${{ secrets.OSSRH_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
./gradlew currentVersion
./gradlew publishToSonatype
Expand Down
4 changes: 2 additions & 2 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ apply plugin: "io.github.gradle-nexus.publish-plugin"

ext {
if (!project.hasProperty('nexusUsername')) {
nexusUsername = "$System.env.OSS_TOKEN_USERNAME"
nexusUsername = "$System.env.NEXUS_USERNAME"
}
if (!project.hasProperty('nexusPassword')) {
nexusPassword = "$System.env.OSS_TOKEN_PASSWORD"
nexusPassword = "$System.env.NEXUS_PASSWORD"
}
}

Expand Down

0 comments on commit c74101f

Please sign in to comment.