diff --git a/.github/workflows/publish_maven.yml b/.github/workflows/publish_maven.yml index e92eab80..108962d3 100644 --- a/.github/workflows/publish_maven.yml +++ b/.github/workflows/publish_maven.yml @@ -1,14 +1,20 @@ name: Publish package to the Maven Central Repository on: - release: - types: [created] - + workflow_dispatch: + inputs: + version: + description: "Version of xcall-lib to publish" + required: true jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Set version for xcall-lib + working-directory: contracts/javascore + run: | + sed -i "s/version = .*/version = '${{ github.event.inputs.version }}'/" xcall-lib/build.gradle - name: Build jar working-directory: contracts/javascore run: ./gradlew clean build