File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,43 @@ name: Deploy
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ level :
7+ description : ' Version for Release (Allowed: major, minor, patch)'
8+ default : ' minor'
9+ required : true
510
611env :
712 UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
813 UNITY_VERSION : 2020.1.15f1
914 PROJECT_PATH : Test
1015
1116jobs :
17+ bump-semvar :
18+ name : Create New Semantic Tag
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout Project
22+ 23+
24+ - name : Get Latest Tag
25+ uses : actions-ecosystem/action-get-latest-tag@v1
26+ id : get-latest-tag
27+ if : ${{ github.event.inputs.level != '' }}
28+ with :
29+ semver_only : true
30+
31+ - name : Bump Semantic Version
32+ uses : actions-ecosystem/action-bump-semver@v1
33+ id : bump-semver
34+ if : ${{ github.event.inputs.level != '' }}
35+ with :
36+ current_version : ${{ steps.get-latest-tag.outputs.tag }}
37+ level : ${{ github.event.inputs.level }}
38+
39+ - name : Send Bumped Semvar
40+ run : echo "Semvar => ${{ steps.bump-semver.outputs.new_version }}"
41+
1242 checklicense :
1343 name : Check for Unity License
1444 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments