File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 59
59
needs :
60
60
- test
61
61
concurrency : release
62
+ if : github.ref == 'refs/heads/main'
62
63
permissions :
63
64
contents : write
64
65
issues : write
@@ -74,19 +75,15 @@ jobs:
74
75
with :
75
76
fetch-depth : 0
76
77
persist-credentials : false
77
-
78
+
78
79
- name : Python Semantic Release
79
80
id : release
80
81
uses :
python-semantic-release/[email protected]
81
82
with :
82
83
github_token : ${{ secrets.GH_TOKEN }}
83
- root_options : ${{ github.ref != 'refs/heads/main' && '-vv --noop' || '-vv' }}
84
-
85
84
- name : Publish package distributions to PyPI
86
85
87
- if : github.ref == 'refs/heads/main' && steps.release.outputs.released == 'true'
88
-
86
+ if : steps.release.outputs.released == 'true'
89
87
- name : Publish package distributions to GitHub Releases
90
88
uses :
python-semantic-release/[email protected]
91
- if : github.ref == 'refs/heads/main' && steps.release.outputs.released == 'true'
92
-
89
+ if : steps.release.outputs.released == 'true'
You can’t perform that action at this time.
0 commit comments