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:
21
21
- uses : olafurpg/setup-gpg@v3
22
22
if : startsWith(github.ref, 'refs/tags/v')
23
23
- 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
26
31
env :
27
32
PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
28
33
PGP_SECRET : ${{ secrets.PGP_SECRET }}
29
34
SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
30
35
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
31
36
- name : " Publish snapshot: ${{github.ref}}"
32
- if : " !startsWith(github.ref, 'refs/tags/v ')"
37
+ if : " !startsWith(github.ref, 'refs/tags/')"
33
38
run : sbt ci-release
34
39
env :
35
40
PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments