Skip to content

Commit d8b58e2

Browse files
authored
again workflow things :P
1 parent e69c6d6 commit d8b58e2

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,3 @@ jobs:
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 }}

0 commit comments

Comments
 (0)