Skip to content

Commit

Permalink
workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSeylani committed Oct 30, 2024
1 parent a971cf6 commit 4f6a91d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish-flex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ jobs:
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_TOKEN_ID }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
echo "ossrhUsername=${{ env.OSSRH_USERNAME }}" >> gradle.properties
echo "ossrhPassword=${{ env.OSSRH_PASSWORD }}" >> gradle.properties
./gradlew :passageflex:publish
run: ./gradlew :passageflex:publish

- name: Wait for Staging Repository to be Created
run: sleep 60
Expand Down
5 changes: 2 additions & 3 deletions passageflex/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ publishing {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username localProperties.getProperty('ossrhUsername')
password localProperties.getProperty('ossrhPassword')
username = project.findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password = project.findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
}
mavenLocal()
}
}

Expand Down

0 comments on commit 4f6a91d

Please sign in to comment.