From 568f310b9f5612a566a224babc9e653d9b7394c1 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Wed, 10 Nov 2021 09:51:42 +0700 Subject: [PATCH] Use github action to auto release --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..844b94b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +--- +name: "tagged-release" + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + name: Tagged Release + runs-on: ubuntu-latest + + steps: + - name: Set up Go 1.16 + uses: actions/setup-go@v1 + with: + go-version: 1.16 + id: go + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build & test + run: go build -ldflags "-s -w" -o /tmp/goignore *.go + + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: /tmp/goignore