From c2c67a63574b1d183b6c93b5b449611bca279e85 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 4 Jan 2024 14:04:28 +0900 Subject: [PATCH] ci: set up a GitHub Actions workflow to release minimock --- .github/workflows/release.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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..a35247b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +--- +name: Release +on: + push: + tags: [v*] +permissions: + contents: write # To create releases +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - uses: actions/setup-go@v5.0.0 + with: + go-version: '1.21.5' + - uses: goreleaser/goreleaser-action@v5.0.0 + with: + version: v1.23.0 + args: release --clean + env: + GITHUB_TOKEN: ${{ github.token }}