https://github.com/cucumber/action-publish-sbt
Use SBT to publish Scala packages
https://github.com/cucumber/action-publish-sbt
polyglot-release
Last synced: 5 months ago
JSON representation
Use SBT to publish Scala packages
- Host: GitHub
- URL: https://github.com/cucumber/action-publish-sbt
- Owner: cucumber
- License: mit
- Created: 2022-02-22T21:57:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T20:28:35.000Z (over 2 years ago)
- Last Synced: 2025-01-31T16:31:16.475Z (over 1 year ago)
- Topics: polyglot-release
- Language: Scala
- Homepage: https://cucumber.io/
- Size: 49.8 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/cucumber/action-publish-sbt/actions/workflows/test.yml)
# action-publish-sbt
Publishes a Scala module to [Maven Central](https://search.maven.org/)
Needs Java & SBT to be installed first.
## Inputs
* `gpg-private-key`
* `gpg-passphrase`
* `nexus-username`
* `nexus-password`
* `working-directory` (default `.`)
## Example
```yaml
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: '17'
- uses: sbt/setup-sbt@v1
- name: Publish
uses: cucumber/action-publish-sbt@v1.0.0
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: "."
```