File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed
Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Create Maven Release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release-version :
7+ description : ' Release version'
8+ required : true
9+ default : ' 0.0.0'
10+ devel-version :
11+ description : ' Development version'
12+ required : true
13+ default : ' 0.0.0-SNAPSHOT'
14+ release-branch :
15+ description : ' Release branch'
16+ required : true
17+ default : ' master'
18+ devel-branch :
19+ description : ' Development branch'
20+ required : true
21+ default : ' jboss-repo'
22+
23+ jobs :
24+ perform-release :
25+ runs-on : ubuntu-latest
26+ name : Perform Maven release
27+ steps :
28+ - id : checkout
29+ uses : actions/checkout@v2
30+ - id : perform
31+ uses : mcarlett/release-explicit-version-action@v0.22
32+ with :
33+ release-version : ${{ github.event.inputs.release-version }}
34+ devel-version : ${{ github.event.inputs.devel-version }}
35+ devel-branch : ${{ github.event.inputs.devel-branch }}
36+ release-branch : ${{ github.event.inputs.release-branch }}
37+ - id : show-tag
38+ run : " echo generated release: ${{ steps.perform.outputs.generated-tag }}"
39+ shell : bash
Original file line number Diff line number Diff line change 1+ name : Release on tag starting with v
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ name : Create Release
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+ - name : Create Release
16+ id : create-release
17+ uses : actions/create-release@v1
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ with :
21+ tag_name : ${{ github.ref }}
22+ release_name : Release ${{ github.ref }}
23+ draft : false
24+ prerelease : false
You can’t perform that action at this time.
0 commit comments