File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Build
33on :
44 push :
55 branches : ["master", "feature/ci"]
6+ tags :
7+ - ' v*'
68
79env :
810 project : ResoniteMetricsCounter
Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 version :
7- description : ' Version to release'
7+ description : ' Version to release "MAJOR.MINOR.PATCH.REVISION" '
88 required : true
99
1010jobs :
@@ -28,10 +28,17 @@ jobs:
2828 FILE=$(find . -name "*.csproj" | head -n 1)
2929 sed -i "s/>${{ steps.get_version.outputs.previousVersion }}/>${{ github.event.inputs.version }}/" $FILE
3030
31+ - name : Create tag
32+ run : |
33+ git tag -v${{ github.event.inputs.version }}
3134 - name : Commit changes
3235 run : |
3336 git config --local user.name "github-actions[bot]"
3437 git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
3538 git add .
3639 git commit -m "chore: 📦️ v${{ github.event.inputs.version }}"
40+
41+ - name : Push changes
42+ run : |
3743 git push
44+ git push --tags
You can’t perform that action at this time.
0 commit comments