Publishes a Scala module to Maven Central
Needs Java & SBT to be installed first.
gpg-private-key
gpg-passphrase
nexus-username
nexus-password
working-directory
(default.
)
name: Publish
on:
push:
branches:
- "release/*"
jobs:
publish-sbt:
name: Publish SBT package to Maven Central
runs-on: ubuntu-latest
environment: Release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11'
- uses: sbt/setup-sbt@v1
- name: Publish
uses: cucumber/[email protected]
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus-username: ${{ secrets.SONATYPE_USERNAME }}
nexus-password: ${{ secrets.SONATYPE_PASSWORD }}
working-directory: "."