From c07129f43575949c37dab45c7cea0e6d4fcbd534 Mon Sep 17 00:00:00 2001 From: Tom Riley Date: Mon, 25 Oct 2021 22:19:36 -0500 Subject: [PATCH] goreleaser test --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ .goreleaser.yaml | 10 ++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1949fef --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: build and release + +on: + push: + tags: + - v** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..5d5c128 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,10 @@ +project_name: clickup +builds: + - env: [CGO_ENABLED=0] + goos: + - linux + - windows + - darwin + goarch: + - amd64 + - arm64 \ No newline at end of file