Skip to content

Commit 405c975

Browse files
committed
ci: release ci is triggered manually
1 parent c98f59f commit 405c975

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
name: Release
22
on:
3-
push:
4-
tags:
5-
- "v*"
6-
workflow_run:
7-
workflows: ["Python", "Cpp"]
8-
branches: [master]
9-
types:
10-
- completed
3+
workflow_dispatch:
114

125
jobs:
136
release:
14-
if: ${{ startsWith(github.event.head_commit.message, 'bump:') }}
157
runs-on: ubuntu-latest
168
permissions:
179
contents: write
1810
name: "Bump version and create changelog with commitizen"
1911
steps:
2012
- name: Check out
2113
uses: actions/checkout@v4
22-
- name: Create bump and changelog
14+
with:
15+
fetch-depth: 0
16+
token: "${{ secrets.GITHUB_TOKEN }}"
17+
- id: cz
18+
name: Create bump and changelog
2319
uses: commitizen-tools/commitizen-action@master
2420
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
2522
changelog_increment_filename: body.md
26-
commit: false
27-
push: false
2823
- name: Release
2924
uses: ncipollo/release-action@v1
3025
with:
3126
tag: v${{ env.REVISION }}
3227
bodyFile: "body.md"
3328
skipIfReleaseExists: true
29+
- name: Print Version
30+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
3431
# TODO: create pypi source distribution

0 commit comments

Comments
 (0)