chore: reduce release merge conflicts by stabilizing OpenAPI client h… #96
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: Release | |
| on: | |
| push: | |
| branches: [develop, main] | |
| jobs: | |
| release: | |
| if: ${{ !startsWith(github.ref, 'refs/tags/v') }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_PAT }} | |
| persist-credentials: false | |
| fetch-depth: 0 # required so semantic-release and our scripts can access tags and history | |
| - uses: cycjimmy/semantic-release-action@v4 | |
| with: | |
| extra_plugins: | | |
| @semantic-release/commit-analyzer | |
| @semantic-release/release-notes-generator | |
| @semantic-release/changelog | |
| @semantic-release/exec | |
| @semantic-release/git | |
| @semantic-release/github | |
| conventional-changelog-conventionalcommits | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
| GIT_AUTHOR_NAME: "Felix T.J. Dietrich" | |
| GIT_AUTHOR_EMAIL: "felixtj.dietrich@tum.de" | |
| GIT_COMMITTER_NAME: "Felix T.J. Dietrich" | |
| GIT_COMMITTER_EMAIL: "felixtj.dietrich@tum.de" | |
| - name: Fast-forward develop from main release | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| env: | |
| GH_PAT: ${{ secrets.GH_PAT }} | |
| run: | | |
| git remote set-url origin https://x-access-token:${GH_PAT}@github.com/ls1intum/Hephaestus.git | |
| git push origin main:develop |