From c2c67a63574b1d183b6c93b5b449611bca279e85 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 4 Jan 2024 14:04:28 +0900 Subject: [PATCH 1/2] 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 }} From 3edd06636521c598af375cc6dd7af2bf642b06b2 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 4 Jan 2024 14:15:30 +0900 Subject: [PATCH 2/2] chore: remove the pre hook --- .goreleaser.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5466578..476513b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,4 @@ project_name: minimock -before: - hooks: - - make all builds: - main: ./cmd/minimock/