ci: move to trusted publishing (#8506) #29
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 | |
| # Orchestrates both production and development releases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Publish production release on tag push | |
| release_prod: | |
| name: 🚀 Production Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: ./.github/workflows/release-prod.yml | |
| secrets: inherit | |
| permissions: | |
| contents: read # Required for checkout | |
| packages: write # Required for Docker image publishing | |
| id-token: write # Required for OIDC | |
| # Publish development release on push to main | |
| release_dev: | |
| name: 🔧 Development Release | |
| if: github.ref == 'refs/heads/main' | |
| uses: ./.github/workflows/release-dev.yml | |
| secrets: inherit | |
| permissions: | |
| contents: read # Required for checkout | |
| pull-requests: write # Required for PR comment | |
| id-token: write # Required for OIDC |