From 1237c4ab6cfa9b2d470f5d865aba5bcccb4ca964 Mon Sep 17 00:00:00 2001 From: Kaustubh K <54210167+kaustubhkapatral@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:02:44 +0530 Subject: [PATCH] ci: integrate goreleaser (#985) --- .github/workflows/goreleaser.yml | 32 ++++++++++++++++++++++++++++++++ .goreleaser.yml | 13 +++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/goreleaser.yml create mode 100644 .goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 000000000..7ec4effa9 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,32 @@ +name: Releaser +# This workflow helps with creating releases. +# This job will only be triggered when a tag (vX.X.x) is pushed +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 + +permissions: + contents: read + +jobs: + release: + permissions: + contents: write # for goreleaser/goreleaser-action to create a GitHub release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: "1.23" + check-latest: true + - name: Unshallow + run: git fetch --prune --unshallow + - name: Create release + uses: goreleaser/goreleaser-action@v3 + with: + args: release --clean --release-notes ./RELEASE_NOTES.md + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 000000000..eef0d7094 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,13 @@ +--- +project_name: iavl + +release: + github: + owner: cosmos + name: iavl + +builds: + - skip: true + +changelog: + disable: false