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/[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: "scala"