Skip to content

Commit

Permalink
Fixing release versioning (#35)
Browse files Browse the repository at this point in the history
* oi?

* updates
  • Loading branch information
cworsnop-figure authored Jun 23, 2022
1 parent cbcd367 commit 47fd681
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ name: Release
on:
release:
types: [ published ]
workflow_dispatch:
inputs:
version:
description: 'Version'
type: string
required: true

jobs:
Release:
env:
VERSION: $( echo ${{ github.event.release.tag_name }} | sed -e 's/^v//' )
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -30,16 +27,14 @@ jobs:
run: ./gradlew clean build --refresh-dependencies
if: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare
id: prep
run: |
DOCKER_IMAGE=provenanceio/p8e-cee-api
VERSION=${{ github.event.inputs.version }}
TAGS="${DOCKER_IMAGE}:${VERSION}"
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 Down Expand Up @@ -69,6 +64,5 @@ jobs:
-Psigning.keyId=B7D30ABE -Psigning.password="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg \
--info
env:
VERSION: $( echo ${{ github.event.inputs.version }} | sed -e 's/^v//' )
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit 47fd681

Please sign in to comment.