chore(main): release 0.4.0 #40
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: google-github-actions/release-please-action@v3 | |
| with: | |
| release-type: java | |
| extra-files: | | |
| gradle.properties | |
| build: | |
| needs: release | |
| if: ${{ needs.release.outputs.release_created }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v3 | |
| - name: validate gradle wrapper | |
| uses: gradle/wrapper-validation-action@v1 | |
| - name: setup jdk 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 21 | |
| distribution: 'microsoft' | |
| - name: make gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: build | |
| run: ./gradlew build | |
| # - name: Upload Release Artifact | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # run: | |
| # find ./build/libs -type f -exec gh release upload ${{ needs.release.outputs.tag_name }} {} + | |
| - 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 |