Skip to content

Commit f0668a8

Browse files
committed
Fix publish: use +ci-release to cross-publish both Scala versions in single deployment
Separate ci-release calls caused duplicate artifact uploads to Central Portal, which rejects re-uploads.
1 parent 0b91b8f commit f0668a8

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,8 @@ jobs:
2424
- name: Set up sbt
2525
uses: sbt/setup-sbt@v1
2626

27-
- name: Publish Scala 2.13
28-
run: sbt ++2.13.14 ci-release
29-
env:
30-
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
31-
PGP_SECRET: ${{ secrets.PGP_SECRET }}
32-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
33-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
34-
35-
- name: Publish Scala 2.12
36-
run: sbt ++2.12.18 ci-release
27+
- name: Publish all Scala versions
28+
run: sbt +ci-release
3729
env:
3830
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
3931
PGP_SECRET: ${{ secrets.PGP_SECRET }}

0 commit comments

Comments
 (0)