From 13059e9107896eb741e1437c75bbfffd6d4a5f35 Mon Sep 17 00:00:00 2001 From: seipan Date: Fri, 3 Nov 2023 02:47:24 +0900 Subject: [PATCH] feat(ci) : release.yml --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..605dc07 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: release + +on: + push: + tags: + - "v*" + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-go@v4 + with: + go-version-file: go.mod + cache: true + + - uses: goreleaser/goreleaser-action@v5 + with: + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file