🧪 test: update sbt-release plugin (#31) #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_call: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
- renovate/** | |
jobs: | |
test-publish-mvn: | |
name: It publishes sbt artefacts | |
runs-on: ubuntu-latest | |
environment: Publish to Nexus | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- uses: sbt/setup-sbt@v1 | |
- name: Set unique package version | |
id: set-version | |
run: | | |
version=0.0.$GITHUB_RUN_NUMBER | |
echo "ThisBuild / version := \"$version\"" > version.sbt | |
echo "version=$version" >> $GITHUB_OUTPUT | |
working-directory: "test" | |
- name: Test the action | |
uses: ./ | |
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: "test" |