File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 22
22
rm git-chglog
23
23
git config user.name "github-actions[bot]"
24
24
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
25
- git add .
25
+ git add ./ChANGELOG.md
26
26
git commit -m "chore(docs): update CHANGELOG for latest tag"
27
27
git push origin HEAD:$REF
28
28
env:
Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- # push:
5
- # tags:
6
- # - 'v*.*.*' # Trigger on version tags like v1.0.0
4
+ push :
5
+ tags :
6
+ - ' v*.*.*' # Trigger on version tags like v1.0.0
7
7
workflow_dispatch : # Allows manual triggering
8
8
inputs :
9
9
version :
@@ -98,11 +98,15 @@ jobs:
98
98
exit 1
99
99
fi
100
100
101
- # Compress the binary with UPX
102
- echo "Compressing binary with UPX..."
103
- upx --best --lzma "$BINARY_PATH"
101
+ # Compress the binary with UPX (skip on macOS)
102
+ if [[ "${{ runner.os }}" != "macOS" ]]; then
103
+ echo "Compressing binary with UPX..."
104
+ upx --best --lzma "$BINARY_PATH"
105
+ else
106
+ echo "Skipping UPX compression on macOS."
107
+ fi
104
108
105
- # Rename binary to the desired asset name AFTER compression
109
+ # Rename binary to the desired asset name AFTER potential compression
106
110
mv "$BINARY_PATH" "$TARGET_DIR/$ASSET_NAME"
107
111
echo "Renamed compressed binary to $TARGET_DIR/$ASSET_NAME"
108
112
You can’t perform that action at this time.
0 commit comments