File tree Expand file tree Collapse file tree 2 files changed +8
-41
lines changed Expand file tree Collapse file tree 2 files changed +8
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,15 +21,20 @@ jobs:
2121 - uses : olafurpg/setup-gpg@v3
2222 if : startsWith(github.ref, 'refs/tags/v')
2323 - name : " Publish release: ${{github.ref}}"
24- if : startsWith(github.ref, 'refs/tags/v')
25- run : PUBLISH_ONLY=${GITHUB_REF%%/*} RELEASE=1 sbt ci-release
24+ if : startsWith(github.ref, 'refs/tags/')
25+ shell : bash
26+ run : |
27+ echo GITHUB_REF=$GITHUB_REF
28+ export PUBLISH_ONLY=$(echo $GITHUB_REF | grep -P "refs/tags/(\K[^/]*)" -o)
29+ echo PUBLISH_ONLY=$PUBLISH_ONLY
30+ RELEASE=1 sbt ci-release
2631 env :
2732 PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
2833 PGP_SECRET : ${{ secrets.PGP_SECRET }}
2934 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
3035 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
3136 - name : " Publish snapshot: ${{github.ref}}"
32- if : " !startsWith(github.ref, 'refs/tags/v ')"
37+ if : " !startsWith(github.ref, 'refs/tags/')"
3338 run : sbt ci-release
3439 env :
3540 PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments