Skip to content

Commit 7f2d9b4

Browse files
author
Fayaz
committed
build and release macos 1
1 parent 36a23d6 commit 7f2d9b4

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/build-and-release.yml renamed to .github/workflows/build-and-release-macos.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Release Go-Easy
1+
name: Build and Release Go-Easy for macOS
22

33
on:
44
schedule:
@@ -192,20 +192,26 @@ jobs:
192192
# Verify the build output exists
193193
ls -la
194194
195-
# Create archive name
196-
GO_VERSION="${{ needs.check-for-changes.outputs.go_version }}"
197-
VERSION_SUFFIX="${{ github.event.inputs.version_suffix || '-easy' }}"
198-
ARCHIVE_NAME="go${GO_VERSION}${VERSION_SUFFIX}.${matrix.platform}-${matrix.arch}"
195+
# Create archive name with proper quoting and variable handling
196+
GO_VERSION='${{ needs.check-for-changes.outputs.go_version }}'
197+
VERSION_SUFFIX='${{ github.event.inputs.version_suffix }}'
198+
if [ -z "$VERSION_SUFFIX" ]; then
199+
VERSION_SUFFIX="-easy"
200+
fi
201+
PLATFORM='${{ matrix.platform }}'
202+
ARCH='${{ matrix.arch }}'
203+
ARCHIVE_NAME="go${GO_VERSION}${VERSION_SUFFIX}-${PLATFORM}-${ARCH}"
199204
200205
echo "Creating archive: ${ARCHIVE_NAME}.tar.gz"
201206
echo "Current directory contents:"
202207
ls -la
203208
204209
# Create archive from the go directory
205-
if [ -d "go" ]; then
206-
tar -czf "${ARCHIVE_NAME}.tar.gz" go/
210+
if [ -d "bin" ] && [ -d "pkg" ] && [ -d "src" ]; then
211+
# We're in the right directory, create tar directly
212+
tar -czf "${ARCHIVE_NAME}.tar.gz" bin/ pkg/ src/ VERSION.cache
207213
else
208-
echo "Error: 'go' directory not found"
214+
echo "Error: Required directories not found"
209215
pwd
210216
ls -la
211217
exit 1

0 commit comments

Comments
 (0)