File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Semantic Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ releaseType :
7
+ description : " version update type"
8
+ required : true
9
+ type : choice
10
+ default : " automatic"
11
+ options :
12
+ - " automatic"
13
+ - " major"
14
+ - " minor"
15
+ - " patch"
16
+
17
+ jobs :
18
+ release :
19
+ runs-on : ubuntu-latest
20
+ concurrency : release
21
+ permissions :
22
+ id-token : write
23
+ contents : write
24
+
25
+ environment :
26
+ name : pypi
27
+ url : https://pypi.org/p/genai-monitor
28
+
29
+ steps :
30
+ - uses : actions/checkout@v3
31
+ with :
32
+ fetch-depth : 0
33
+
34
+ - name : Python Semantic Release Manual
35
+ id : release_manual
36
+ if : ${{ github.event.inputs.releaseType != 'automatic' }}
37
+ uses : python-semantic-release/python-semantic-release@master
38
+ with :
39
+ github_token : ${{ secrets.GITHUB_TOKEN }}
40
+ force : ${{ github.event.inputs.releaseType }}
41
+ changelog : false
42
+
43
+ - name : Python Semantic Release Automatic
44
+ id : release_automatic
45
+ if : ${{ github.event.inputs.releaseType == 'automatic' }}
46
+ uses : python-semantic-release/python-semantic-release@master
47
+ with :
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
49
+ changelog : false
50
+
51
+
52
+ - name : Publish package distributions to PyPI
53
+ uses : pypa/gh-action-pypi-publish@release/v1
54
+
55
+ if : steps.release_manual.outputs.released == 'true' || steps.release_automatic.outputs.released == 'true'
You can’t perform that action at this time.
0 commit comments