Update sbt to 2.0.5 #57
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: Sonatype Release | |
| on: | |
| push: | |
| branches: [master] | |
| tags: ["*"] | |
| pull_request: | |
| branches: [master] | |
| # Cancel in-progress runs for the same branch/PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| JVM_VERSION: "zulu:25" | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| name: ${{ startsWith(github.ref, 'refs/tags/') && 'Publish Tag as Release' || 'Publish Snapshot' }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: false | |
| fetch-depth: 0 | |
| - uses: coursier/cache-action@v8 | |
| - name: Import GPG key for signing the release | |
| uses: crazy-max/ghaction-import-gpg@v7 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - uses: coursier/setup-action@v3.0.0 | |
| with: | |
| jvm: ${{ env.JVM_VERSION }} | |
| apps: sbt | |
| - name: Download tree-sitter-natives release | |
| id: download | |
| continue-on-error: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| run: scripts/download-release.sh "$TREE_SITTER_NATIVES_VERSION" | |
| env: | |
| TREE_SITTER_NATIVES_VERSION: 0.26.8 | |
| - name: Publish | |
| run: sbt ci-release | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} |