diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..33e2a0c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release TBB binaries + +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/amd64 + goos: [linux, darwin, windows] + goarch: [amd64, arm64, arm, 386] + steps: + - uses: actions/checkout@v2 + - name: Run tests + run: go test -v -p=1 -timeout=0 ./... + - uses: wangyoucao577/go-release-action@v1.16 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + project_path: "." + binary_name: "GoShod" + ldflags: "-s -w" + extra_files: LICENSE README.md