File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
dotnet-version : 8.0.x
25
25
26
- - name : Calculate next tag
26
+ - name : Get last commit message
27
+ id : last_commit
28
+ run : |
29
+ echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
30
+
31
+ - name : Calculate next tag version
27
32
id : tag
28
33
shell : bash
29
34
run : |
37
42
new_tag="$major.$minor.$patch"
38
43
fi
39
44
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT
45
+ git tag "$new_tag"
46
+ git push origin "$new_tag"
40
47
41
48
- name : Build project
42
49
run : dotnet publish $env:Project_Path -c Release -o $env:Output_Dir -r win-x64 `
@@ -51,10 +58,10 @@ jobs:
51
58
- name : Create GitHub Release
52
59
uses : softprops/action-gh-release@v2
53
60
with :
54
- tag_name : ${{ steps.tag.outputs.new_tag }}-autobuild
55
- name : Release ${{ steps.tag.outputs.new_tag }}-autobuild
61
+ tag_name : ${{ steps.tag.outputs.new_tag }}
62
+ name : Release ${{ steps.tag.outputs.new_tag }}
56
63
body : |
57
- ${{ needs.build. steps.last_commit.outputs.commit_message }}
64
+ ${{ steps.last_commit.outputs.commit_message }}
58
65
files : ${{ env.Output_Dir }}/*.exe
59
66
env :
60
67
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments