Build: update GitHub action dependencies #16
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
| # Publish release to Maven for every push to master. | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up 'publish.properties' | |
| run: | | |
| echo "${{ secrets.SIGNING_KEY_FILE }}" > signingKey.asc | |
| echo "${{ secrets.PUBLISH_PROPERTIES }}" > publish.properties | |
| - name: Build and test | |
| run: ./gradlew check | |
| - name: Publish to staging repo and release | |
| if: success() | |
| run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository |