File tree 4 files changed +4
-96
lines changed
4 files changed +4
-96
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
release :
10
- if : github.head_ref == 'release' && github.event.pull_request.merged == true
10
+ if : github.head_ref == 'knope/ release' && github.event.pull_request.merged == true
11
11
runs-on : ubuntu-latest
12
12
permissions :
13
13
id-token : write
14
14
steps :
15
15
16
- with :
17
- fetch-depth : 0
18
- token : ${{ secrets.PAT }}
19
- - name : Install Knope
20
-
21
- with :
22
- version : 0.18.0
23
16
- name : Install Hatchling
24
17
run : pip install --upgrade hatchling
25
18
- name : Build
26
19
run : hatchling build
27
20
- name : Push to PyPI
28
21
29
- - name : Create GitHub Release
30
- run : knope release
31
- env :
32
- GITHUB_TOKEN : ${{ secrets.PAT }}
Original file line number Diff line number Diff line change 2
2
versioned_files = [" pyproject.toml" ]
3
3
changelog = " CHANGELOG.md"
4
4
5
- [[workflows ]]
6
- name = " prepare-release"
7
-
8
- [[workflows .steps ]]
9
- type = " Command"
10
- shell = true
11
- command = " git switch -c release"
12
-
13
- [[workflows .steps ]]
14
- type = " PrepareRelease"
15
-
16
- [[workflows .steps ]]
17
- type = " Command"
18
- shell = true
19
- command = " git commit -m \" chore: prepare release $version\" && git push --force --set-upstream origin release"
20
-
21
- [workflows .steps .variables ]
22
- "$version" = " Version"
23
-
24
- [[workflows .steps ]]
25
- type = " CreatePullRequest"
26
- base = " main"
27
-
28
- [workflows .steps .title ]
29
- template = " chore: prepare release $version"
30
- variables = { "$version" = " Version" }
31
-
32
- [workflows .steps .body ]
33
- template = " This PR was created by Knope. Merging it will create a new release\n\n $changelog"
34
- variables = { "$changelog" = " ChangelogEntry" }
35
-
36
- [[workflows ]]
37
- name = " release"
38
-
39
- [[workflows .steps ]]
40
- type = " Release"
41
-
42
- [[workflows ]]
43
- name = " document-change"
44
-
45
- [[workflows .steps ]]
46
- type = " CreateChangeFile"
47
-
48
5
[github ]
49
6
owner = " openapi-generators"
50
7
repo = " openapi-python-client"
8
+
9
+ [bot .releases ]
10
+ enabled = true
You can’t perform that action at this time.
0 commit comments