Skip to content

ci: workaround solution #5

ci: workaround solution

ci: workaround solution #5

Workflow file for this run

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 }}