File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 1- name : Build and Release Go-Easy
1+ name : Build and Release Go-Easy for macOS
22
33on :
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
You can’t perform that action at this time.
0 commit comments