From 3f10d60638716fdd98932c2750c98d2ea16564d8 Mon Sep 17 00:00:00 2001 From: Damian Reeves <957246+DamianReeves@users.noreply.github.com> Date: Mon, 18 May 2020 16:33:47 -0400 Subject: [PATCH] Update release steps --- .github/workflows/publish.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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 }}