release.yml 1.2 KB

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