ci: workaround solution #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish package to the Maven Central Repository | |
on: | |
# release: | |
# types: [created] | |
push: | |
branches: | |
- "**" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build jar | |
working-directory: contracts/javascore | |
run: ./gradlew clean build | |
- name: Publish package | |
run: | | |
# Temporary workaround - uncomment maven publish block | |
sed -i 's/^\/\/ //' build.gradle | |
./gradlew -Prelease xcall-lib:publishToSonatype closeAndReleaseSonatypeStagingRepository | |
env: | |
STAGING_PROFILE_ID : ${{ secrets.STAGING_PROFILE_ID }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }} |