Skip to content

Commit 24fda72

Browse files
committed
Fix publishing pipeline
1 parent a1d59dc commit 24fda72

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,10 @@ jobs:
5252
- name: Get version
5353
id: get_tag_name
5454
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
55-
- name: Import GPG key
56-
env:
57-
#exported via `gpg -a --export-secret-keys <key> | cat -e | sed 's/\$/\\n/g' | xclip -selection clipboard` and added to org secrets
58-
SONATYPE_GPG: ${{ secrets.SONATYPE_GPG }}
59-
run: echo -e $SONATYPE_GPG | gpg --import -
6055
- name: Publish artifacts
6156
env:
62-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
57+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
58+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
6359
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
64-
run: sbt 'set ThisBuild/version := "${{ steps.get_tag_name.outputs.VERSION }}"' +publishSigned
65-
- name: Release Sonatype bundle
66-
#https://github.com/xerial/sbt-sonatype#publishing-your-artifact
67-
if: ${{ !endsWith(steps.get_tag_name.outputs.VERSION, 'SNAPSHOT') }}
68-
env:
6960
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
70-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
71-
run: sbt 'set ThisBuild/version := "${{ steps.get_tag_name.outputs.VERSION }}"' sonatypeBundleRelease
61+
run: sbt ci-release

0 commit comments

Comments
 (0)