File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release (Manual)
2+
3+ on :
4+ # Enable execution directly from Actions page
5+ workflow_dispatch :
6+ inputs :
7+ bump-version :
8+ description : ' Bump Level?'
9+ type : choice
10+ options :
11+ - ' major'
12+ - ' minor'
13+ - ' patch'
14+ - ' prerelease'
15+ required : true
16+ as-prerelease :
17+ description : ' As pre-release?'
18+ type : boolean
19+ required : true
20+ default : false
21+
22+ # default token permissions = none
23+ permissions : {}
24+
25+ jobs :
26+ build :
27+ name : Verify Docker Build
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v4
31+ with :
32+ fetch-depth : 1
33+ ref : ${{ github.ref_name }}
34+
35+ - name : Build Docker Image
36+ run : |
37+ docker build -t psr-upload-to-release:latest .
38+
39+ release :
40+ name : Semantic Release
41+ runs-on : ubuntu-latest
42+ concurrency : push
43+ needs : [build]
44+
45+ permissions :
46+ id-token : write
47+ contents : write
48+
49+ steps :
50+ - uses : actions/checkout@v4
51+ with :
52+ fetch-depth : 0
53+ ref : ${{ github.ref_name }}
54+
55+ - name : Python Semantic Release
56+ uses :
python-semantic-release/[email protected] 57+ with :
58+ github_token : ${{ secrets.GITHUB_TOKEN }}
59+ root_options : " -vv -c releaserc.toml"
60+ force : ${{ github.event.inputs.bump-version }}
61+ prerelease : ${{ github.event.inputs.as-prerelease }}
62+ commit : false
63+ changelog : false
You can’t perform that action at this time.
0 commit comments