diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 68b11b7a..d4875384 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,6 +13,8 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: olafurpg/setup-scala@v7 + - uses: olafurpg/setup-gpg@v2 # Runs a set of commands using the runners shell - name: Update .bashrc @@ -53,15 +55,11 @@ jobs: key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} restore-keys: | ${{ runner.os }}-sbt- - - - - name: Publish - uses: DamianReeves/sbt-maven-publish@master - with: - sonatype-username: ${{ secrets.SONATYPE_USERNAME }} - sonatype-password: ${{ secrets.SONATYPE_PASSWORD }} - pgp-secret: ${{ secrets.PGP_SECRET }} - pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }} - pgp-passphrase-variable-name: "PGP_PASSWORD" - pgp-public-key: ${{ secrets.PGP_PUBLIC_KEY }} - + + - name: Publish ${{ github.ref }} + run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}