Add scmInfo and versionScheme for Sonatype Central, v2.2.4 #23
Workflow file for this run
This file contains hidden or 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: release | |
| on: | |
| push: | |
| tags: [v*] | |
| jobs: | |
| release-scala: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout the repo | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup sbt launcher | |
| uses: sbt/setup-sbt@v1 | |
| - name: run tests scala 2.13 | |
| run: sbt ++2.13 test | |
| - name: run tests scala 3.7 | |
| run: sbt ++3.7 test | |
| - name: publish | |
| env: | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
| SONATYPE_PASSWORD: ${{ secrets.CENTRAL_TOKEN }} | |
| SONATYPE_USERNAME: ${{ secrets.CENTRAL_USERNAME }} | |
| run: sbt ci-release |