File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change 3737 with :
3838 name : twlauncher-windows
3939 path : dist/TWLauncher-x64.exe
40-
41- - name : Check for version in commit message
42- id : check_version
43- run : |
44- COMMIT_MESSAGE=$(git log -1 --pretty=%B)
45- if echo "$COMMIT_MESSAGE" | grep -E 'v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+(\.[0-9]+)?)?'; then
46- VERSION=$(echo "$COMMIT_MESSAGE" | grep -oE 'v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+(\.[0-9]+)?)?' | head -1)
47- echo "version=$VERSION" >> $GITHUB_OUTPUT
48- echo "Found version: $VERSION"
49- else
50- echo "No version found in commit message"
51- echo "version=" >> $GITHUB_OUTPUT
52- fi
53- shell : bash
54-
55- - name : Create tag for version
56- if : steps.check_version.outputs.version != ''
57- run : |
58- VERSION="${{ steps.check_version.outputs.version }}"
59- git tag "$VERSION"
60- git push origin "$VERSION"
61- env :
62- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63-
64- - name : Create draft release
65- if : steps.check_version.outputs.version != ''
66- run : |
67- VERSION="${{ steps.check_version.outputs.version }}"
68- gh release create "$VERSION" \
69- --title "Release $VERSION" \
70- --draft \
71- --notes "Automated draft release for $VERSION" \
72- dist/TWLauncher-x64.exe
73- env :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments