1.2.1 #6
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 |