Bump codecov/codecov-action from 3.1.4 to 5.3.1 #20
Workflow file for this run
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: Create GitHub Release | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| release: | |
| if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/')) | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| # Checkout the code | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Get the version from the branch name | |
| - id: get_version | |
| uses: ./.github/actions/get-version | |
| # Get the prerelease flag from the branch name | |
| - id: get_prerelease | |
| uses: ./.github/actions/get-prerelease | |
| with: | |
| version: ${{ steps.get_version.outputs.version }} | |
| # Get the release notes | |
| - id: get_release_notes | |
| uses: ./.github/actions/get-release-notes | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: ${{ steps.get_version.outputs.version }} | |
| repo_owner: ${{ github.repository_owner }} | |
| repo_name: ${{ github.event.repository.name }} | |
| # Check if the tag already exists | |
| - id: tag_exists | |
| uses: ./.github/actions/tag-exists | |
| with: | |
| tag: ${{ steps.get_version.outputs.version }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # If the tag already exists, exit with an error | |
| - if: steps.tag_exists.outputs.exists == 'true' | |
| run: exit 1 | |
| # Publish the release to Maven | |
| - uses: ./.github/actions/maven-publish | |
| with: | |
| java-version: '11' | |
| ossr-username: ${{ secrets.OSSR_USERNAME }} | |
| ossr-token: ${{ secrets.OSSR_TOKEN }} | |
| signing-key: ${{ secrets.SIGNING_KEY }} | |
| signing-password: ${{ secrets.SIGNING_PASSWORD }} | |
| # Create a release for the tag | |
| - uses: ./.github/actions/release-create | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| name: ${{ steps.get_version.outputs.version }} | |
| body: ${{ steps.get_release_notes.outputs.release-notes }} | |
| tag: ${{ steps.get_version.outputs.version }} | |
| commit: ${{ github.sha }} | |
| prerelease: ${{ steps.get_prerelease.outputs.prerelease }} |