Skip to content

Commit

Permalink
Update release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianReeves authored May 18, 2020
1 parent 22d65ae commit 3f10d60
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 3f10d60

Please sign in to comment.