You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
813 B

  1. name: Release
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. name: Build
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Check out code into the Go module directory
  13. uses: actions/checkout@v2
  14. - name: Go Release Binaries
  15. uses: wangyoucao577/go-release-action@feature/customize-target-release
  16. with:
  17. github_token: ${{ secrets.GITHUB_TOKEN }}
  18. goos: linux # default is
  19. goarch: amd64 # default is
  20. release_tag: dev
  21. overwrite: true
  22. build_flags: -tags 5BytesOffset # optional, default is
  23. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  24. # Where to run `go build .`
  25. project_path: weed
  26. binary_name: weed-large-disk