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 21, 2021
1 parent 7710b58 commit 7dfbc28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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(env.GITHUB_REF, 'refs/tags') }}

- name: Publish SNAPSHOT
run: sbt clean publish
Expand All @@ -75,7 +75,7 @@ jobs:

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

0 comments on commit 7dfbc28

Please sign in to comment.