Skip to content

v0.6.5: Enhancements to Powershell system path handling in macOS #11

v0.6.5: Enhancements to Powershell system path handling in macOS

v0.6.5: Enhancements to Powershell system path handling in macOS #11

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Check if UPX exists
id: check-upx
run: |
if command -v upx >/dev/null 2>&1; then
echo "available=true" >> $GITHUB_OUTPUT
echo "✅ UPX found: $(which upx)"
else
echo "available=false" >> $GITHUB_OUTPUT
echo "🚫 UPX not found"
fi
- name: Notify attempt to install UPX (if needed)
if: steps.check-upx.outputs.available == 'false'
run: echo "🔄 Trying to install UPX via action..."
- name: Install UPX (if needed)
if: steps.check-upx.outputs.available == 'false'
uses: crazy-max/ghaction-upx@v3
with:
install-only: true
continue-on-error: true
- name: Verify UPX installation
run: |
if command -v upx >/dev/null 2>&1; then
echo "UPX available: $(which upx)"
upx --version
else
echo "ℹ️ UPX not available - binaries will not be compressed"
fi
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}