Skip to content

Commit

Permalink
:flips-table:
Browse files Browse the repository at this point in the history
  • Loading branch information
cworsnop-figure committed Jun 23, 2022
1 parent 628e3d3 commit 989617b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:

jobs:
Release:
env:
VERSION: ${{ $( echo ${{ github.event.release.tag_name }} | sed -e 's/^v//' ) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,8 +31,10 @@ jobs:
id: prep
run: |
DOCKER_IMAGE=provenanceio/p8e-cee-api
TAGS="${DOCKER_IMAGE}:$VERSION"
VERSION=$( echo ${{ github.event.release.tag_name }} | sed -e 's/^v//' )
TAGS="${DOCKER_IMAGE}:${VERSION}"
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Set up Docker Buildx
Expand All @@ -60,7 +60,7 @@ jobs:
echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > $GITHUB_WORKSPACE/release.gpg
- name: Publish to Maven Central
run: |
./gradlew publishToSonatype -Pversion="$VERSION" $(if [ "${{github.event.release.prerelease}}" = "true" ]; then echo 'closeSonatypeStagingRepository'; else echo 'closeAndReleaseSonatypeStagingRepository'; fi) \
./gradlew publishToSonatype -Pversion=${{ steps.ci-release-create-outputs.outputs.version }} $(if [ "${{github.event.release.prerelease}}" = "true" ]; then echo 'closeSonatypeStagingRepository'; else echo 'closeAndReleaseSonatypeStagingRepository'; fi) \
-Psigning.keyId=B7D30ABE -Psigning.password="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg \
--info
env:
Expand Down

0 comments on commit 989617b

Please sign in to comment.