diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml new file mode 100644 index 0000000..d5005b3 --- /dev/null +++ b/.github/workflows/goreleaser.yaml @@ -0,0 +1,34 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + goreleaser: + permissions: + contents: write + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/go.mod b/go.mod index ddadbf5..1b25e90 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,8 @@ go 1.12 require ( github.com/ashwanthkumar/slack-go-webhook v0.0.0-20200209025033-430dd4e66960 github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 // indirect - github.com/google/btree v1.0.0 // indirect github.com/parnurzeal/gorequest v0.2.16 // indirect github.com/sirupsen/logrus v1.8.1 github.com/spf13/viper v1.8.1 - golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 // indirect moul.io/http2curl v1.0.0 // indirect )