From 58e37a485c72787845c97eca62b11499d63ba527 Mon Sep 17 00:00:00 2001 From: Natan Date: Tue, 30 Jul 2024 09:31:17 -0300 Subject: [PATCH] upload snapshot --- .github/workflows/build_and_upload.yml | 64 +++++++++++++------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build_and_upload.yml b/.github/workflows/build_and_upload.yml index 656e8ed..763ba2e 100644 --- a/.github/workflows/build_and_upload.yml +++ b/.github/workflows/build_and_upload.yml @@ -275,35 +275,35 @@ jobs: - name: Generate Jolt classes run: ./gradlew :jolt:jolt-build:build_project -# - name: Upload to repository -# uses: nick-fields/retry@v3 -# if: ${{ inputs.shouldUpload }} -# with: -# max_attempts: 3 -# timeout_minutes: 10 -# retry_on: error -# command: ./gradlew publish -# env: -# USER: ${{ secrets.USER }} -# PASSWORD: ${{ secrets.PASSWORD }} -# SIGNING_KEY: ${{ secrets.PGP_SECRET }} -# SIGNING_PASSWORD: ${{ secrets.PGP_PASSPHRASE }} -# -# - name: Create Git tag -# uses: actions/github-script@v7 -# if: ${{ inputs.isRelease }} -# with: -# script: | -# const versionOutputs = ${{ toJSON(steps.version.outputs) }}; -# -# var version = versionOutputs.value; -# -# console.log("Version: " + version); -# -# var ref = "refs/tags/" + version -# github.rest.git.createRef({ -# owner: context.repo.owner, -# repo: context.repo.repo, -# ref: ref, -# sha: context.sha -# }); \ No newline at end of file + - name: Upload to repository + uses: nick-fields/retry@v3 + if: ${{ inputs.shouldUpload }} + with: + max_attempts: 3 + timeout_minutes: 10 + retry_on: error + command: ./gradlew publish + env: + USER: ${{ secrets.USER }} + PASSWORD: ${{ secrets.PASSWORD }} + SIGNING_KEY: ${{ secrets.PGP_SECRET }} + SIGNING_PASSWORD: ${{ secrets.PGP_PASSPHRASE }} + + - name: Create Git tag + uses: actions/github-script@v7 + if: ${{ inputs.isRelease }} + with: + script: | + const versionOutputs = ${{ toJSON(steps.version.outputs) }}; + + var version = versionOutputs.value; + + console.log("Version: " + version); + + var ref = "refs/tags/" + version + github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: ref, + sha: context.sha + }); \ No newline at end of file