Merge pull request #94 from containifyci/dependabot/go_modules/dot-co… #84
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| # Grouped by ref (branch/tag name) not to cancel other jobs running for other feature branches | |
| group: engine_ci_service_${{ github.ref }} | |
| # > cancel any currently running job or workflow in the same concurrency group | |
| # in case of multiple pushes to the same branch, we just need the latest, so cancel all previous | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write # for checkout | |
| id-token: write # for authenticating to Google Cloud Platform | |
| pull-requests: write # for updating pr | |
| jobs: | |
| build-engine-ci: | |
| uses: ./.github/workflows/engine-ci.yml | |
| secrets: inherit | |
| release-engine-ci: | |
| runs-on: ubuntu-latest | |
| needs: build-engine-ci | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| - name: Get Next Version | |
| id: semver | |
| uses: ietf-tools/semver-action@v1 | |
| with: | |
| token: ${{ github.token }} | |
| branch: main | |
| noVersionBumpBehavior: silent | |
| skipInvalidTags: true | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1 | |
| if: steps.semver.outputs.next | |
| with: | |
| allowUpdates: true | |
| # draft: true | |
| generateReleaseNotes: true | |
| makeLatest: true | |
| tag: ${{ steps.semver.outputs.next }} | |
| token: ${{ secrets.CONTAINIFYCI_RELEASE_TOKEN }} |