ci: update workflows #4
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: Bump and release | |
| on: | |
| workflow_dispatch: | |
| - stable | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| name: "Bump version and create changelog with commitizen" | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: "${{ secrets.COMMITIZEN }}" | |
| - name: Setup pixi | |
| uses: prefix-dev/setup-pixi@v0.8.8 | |
| with: | |
| pixi-version: v0.46.0 | |
| cache: true | |
| - name: Create bump and changelog | |
| run: | | |
| pixi run -e default cz bump --changelog-to-stdout > body.md | |
| git push origin main --follow-tags | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body_path: "body.md" | |
| tag_name: ${{ env.REVISION }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.COMMITIZEN }} | |
| - name: Merge main -> stable | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: "${{ secrets.COMMITIZEN }}" | |
| run: | | |
| git rebase origin/main | |
| git push origin stable |