release.yml 685 B

1234567891011121314151617181920212223242526272829
  1. name: Release Go Binary
  2. on:
  3. release:
  4. types: [published]
  5. workflow_dispatch:
  6. jobs:
  7. releases-matrix:
  8. name: Release Go Binary
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. goos: [linux, windows, darwin]
  13. goarch: [amd64, arm64]
  14. exclude:
  15. - goarch: arm64
  16. goos: windows
  17. steps:
  18. - uses: actions/checkout@v4
  19. with:
  20. fetch-depth: 0
  21. - uses: wangyoucao577/go-release-action@v1.52
  22. with:
  23. github_token: ${{ secrets.GITHUB_TOKEN }}
  24. goos: ${{ matrix.goos }}
  25. goarch: ${{ matrix.goarch }}
  26. build_command: "make build"
  27. extra_files: LICENSE README.md gof.example.yaml