ci: drop v prefix from tree-sitter-natives version references #3
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] | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| name: ${{ startsWith(github.ref, 'refs/tags/') && 'Publish Tag as Release' || 'Publish Snapshot' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: coursier/cache-action@v8 | |
| - uses: coursier/setup-action@v3.0.0 | |
| with: | |
| jvm: 'temurin:1.22' | |
| 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.1.0 | |
| - name: Import GPG key | |
| uses: crazy-max/ghaction-import-gpg@v7 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| - name: Publish | |
| run: sbt ci-release | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} |