chore(main): release 0.4.2 #57
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: Release Please | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ReleasePlease-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| sha: ${{ steps.release.outputs.sha }} | |
| tag_name: ${{ steps.release.outputs.tag_name }} | |
| steps: | |
| - name: Create GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ vars.APP_ID || secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| permission-contents: write | |
| permission-pull-requests: write | |
| permission-issues: write | |
| - name: Create or update release PR | |
| id: release | |
| uses: googleapis/release-please-action@v5 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| - name: Checkout released code | |
| if: ${{ steps.release.outputs.release_created == 'true' }} | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ steps.release.outputs.sha }} | |
| - name: Setup Java | |
| if: ${{ steps.release.outputs.release_created == 'true' }} | |
| uses: actions/setup-java@v6 | |
| with: | |
| java-version: "25" | |
| distribution: "graalvm" | |
| server-id: github | |
| - name: Publish to GitHub Packages | |
| if: ${{ steps.release.outputs.release_created == 'true' }} | |
| run: ./mvnw -B deploy -DskipTests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| docker-jvm: | |
| needs: release-please | |
| if: ${{ needs.release-please.outputs.release_created == 'true' }} | |
| uses: ./.github/workflows/docker.yml | |
| with: | |
| ref: ${{ needs.release-please.outputs.sha }} | |
| version: ${{ needs.release-please.outputs.tag_name }} | |
| publish-latest: true | |
| secrets: inherit | |
| docker-native: | |
| needs: release-please | |
| if: ${{ needs.release-please.outputs.release_created == 'true' }} | |
| uses: ./.github/workflows/dockerNative.yml | |
| with: | |
| ref: ${{ needs.release-please.outputs.sha }} | |
| version: ${{ needs.release-please.outputs.tag_name }} | |
| publish-latest: true | |
| secrets: inherit |