Use SBT to publish Scala packages

Test

action-publish-sbt

Publishes a Scala module to Maven Central

Needs Java to be installed first.

Inputs

  • gpg-private-key
  • gpg-passphrase
  • nexus-username
  • nexus-password
  • working-directory (default .)

Example

name: Publish

on:
  push:
    branches:
      - "release/*"

jobs:
  publish-ui:
    name: Publish UI package to mvn
    runs-on: ubuntu-latest
    environment: Release
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v1
        with:
          java-version: '11'
      - name: Test the action
        uses: cucumber/action-publish-sbt@v1.0.0
        with:
          gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
          gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
          nexus-username: ${{ secrets.NEXUS_USERNAME }}
          nexus-password: ${{ secrets.NEXUS_PASSWORD }}
          working-directory: "scala"