ci: update release-please #46
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
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| name: release-please | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| tag_name: ${{ steps.release.outputs.tag_name }} | |
| steps: | |
| - id: release | |
| uses: googleapis/release-please-action@v4 | |
| with: | |
| release-type: java | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| build: | |
| needs: release | |
| if: ${{ needs.release.outputs.release_created }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: gradle/actions/wrapper-validation@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: 'microsoft' | |
| - name: make gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: build | |
| run: ./gradlew build | |
| - uses: Kir-Antipov/mc-publish@v3.3 | |
| with: | |
| # Only include this section if you wish to publish | |
| # your assets on Modrinth. | |
| modrinth-id: ${{ vars.MODRINTH_ID }} | |
| modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
| # Only include this section if you wish to publish | |
| # your assets on GitHub. | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| github-tag: ${{ needs.release.outputs.tag_name }} | |
| changelog-file: CHANGELOG.md |