File tree 1 file changed +17
-12
lines changed
1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Prepare release
1
+ name : Create release
2
2
3
3
on :
4
4
push :
@@ -18,11 +18,13 @@ permissions:
18
18
jobs :
19
19
tests :
20
20
uses : ./.github/workflows/step_test.yaml
21
+
21
22
build-wheel :
22
23
needs : [ tests ]
23
24
uses : ./.github/workflows/step_build-wheel.yaml
24
25
with :
25
26
ref : ${{ inputs.ref }}
27
+
26
28
upload_pypi :
27
29
name : Upload to PyPI repository
28
30
needs : [ tests, build-wheel ]
@@ -32,21 +34,24 @@ jobs:
32
34
url : https://pypi.org/project/click-option-group/
33
35
permissions :
34
36
id-token : write
37
+ contents : write
38
+
35
39
steps :
36
40
37
41
with :
38
42
name : artifact
39
43
path : dist
40
44
- name : Publish package to PyPI
41
45
uses : pypa/gh-action-pypi-publish@release/v1
42
- # release:
43
- # needs: [ upload_pypi ]
44
- # name: Create release
45
- # runs-on: ubuntu-latest
46
- # steps:
47
- # - uses: actions/checkout@v4
48
- # - uses: softprops/action-gh-release@v2
49
- # with:
50
- # name: click-option-group ${{ github.ref_name }}
51
- # prerelease: ${{ contains(github.ref, 'rc') }}
52
- # generate_release_notes: true
46
+
47
+ release :
48
+ needs : [ upload_pypi ]
49
+ name : Create release
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - uses : actions/checkout@v4
53
+ - uses : softprops/action-gh-release@v2
54
+ with :
55
+ name : click-option-group ${{ github.ref_name }}
56
+ prerelease : ${{ contains(github.ref, 'rc') }}
57
+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments