Skip to content

Commit

Permalink
upload snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 30, 2024
1 parent 425bf07 commit 58e37a4
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# });
- 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
});

0 comments on commit 58e37a4

Please sign in to comment.