Skip to content

1.2.0

1.2.0 #5

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
permissions:
contents: write # Required for releasing
strategy:
fail-fast: false # Continue with other builds if one fails
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper versioning
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22' # Use stable version specification
check-latest: true
cache: true
- name: Build and Release
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "panelssh-tcp-socket"
extra_files: LICENSE README.md
md5sum: true
sha256sum: true
compress_assets: true # Compress binaries
build_flags: "-trimpath -ldflags=\"-s -w\"" # Smaller binaries