From 301882235d5f6cb6d140fea6b94ed9942dc4027f Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Tue, 15 Dec 2020 15:52:42 +0100 Subject: [PATCH] ci: gh actions setup Signed-off-by: Leonardo Di Donato --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..51bd1ff --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +name: release + +on: + push: + tags: + - "v*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: golang + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - name: goreleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}