Skip to content

Commit

Permalink
Fix publishing by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Sep 22, 2021
1 parent 7710b58 commit 2737d7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

- name: Extract Tag Name
run: echo "TAG_NAME=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV && echo "TAG_NAME=$TAG_NAME"
if: startsWith(github.ref, 'refs/tags')
run: echo "TAG_NAME=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
if: ${{ startsWith(github.ref, 'refs/tags') }}

- name: Publish SNAPSHOT
run: sbt clean publish
Expand All @@ -74,8 +74,8 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

- name: Publish RELEASE
run: echo "TAG_NAME=$TAG_NAME"
if: env.TAG_NAME != ''
run: echo "TAG_NAME=$TAG_NAME" && echo "github.ref=${{ github.ref }}"
if: ${{ env.TAG_NAME != '' }}
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 comments on commit 2737d7c

Please sign in to comment.