Skip to content

Commit

Permalink
Fix release detection
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Jan 31, 2021
1 parent 6aca956 commit 5232390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/ci.yml

This file was deleted.

11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@ jobs:
- uses: olafurpg/setup-gpg@v3
if: startsWith(github.ref, 'refs/tags/v')
- name: "Publish release: ${{github.ref}}"
if: startsWith(github.ref, 'refs/tags/v')
run: PUBLISH_ONLY=${GITHUB_REF%%/*} RELEASE=1 sbt ci-release
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
echo GITHUB_REF=$GITHUB_REF
export PUBLISH_ONLY=$(echo $GITHUB_REF | grep -P "refs/tags/(\K[^/]*)" -o)
echo PUBLISH_ONLY=$PUBLISH_ONLY
RELEASE=1 sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: "Publish snapshot: ${{github.ref}}"
if: "!startsWith(github.ref, 'refs/tags/v')"
if: "!startsWith(github.ref, 'refs/tags/')"
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 5232390

Please sign in to comment.