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 e3768b4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,15 @@ 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 "GITHUB_REF=$GITHUB_REF" &&
echo "github.ref=${{ github.ref }}" &&
echo "startsWith is_branch=${{ startsWith(github.ref, 'refs/heads') }}" &&
echo "startsWith is_tag=${{ startsWith(github.ref, 'refs/tags') }}" &&
echo "startsWith is_branch=${{ contains(github.ref, 'refs/heads') }}" &&
echo "startsWith is_tag=${{ contains(github.ref, 'refs/tags') }}"
# run: echo "TAG_NAME=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV && echo "TAG_NAME=$TAG_NAME"
# if: ${{ startsWith(github.ref, 'refs/tags') }}

- name: Publish SNAPSHOT
run: sbt clean publish
Expand Down

0 comments on commit e3768b4

Please sign in to comment.