Skip to content

Commit

Permalink
ci: add release workflow (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: viveksharmapoudel <[email protected]>
  • Loading branch information
DeepakBomjan and viveksharmapoudel authored Aug 16, 2023
1 parent 4ae7d45 commit bdf1cc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Release"
on:
push:
tags:
- '*' # Run release on any tag. Will be marked as draft by default anyway.
- 'v*.*.*-alpha.*' # Run release on any tag. Will be marked as draft by default anyway.

jobs:
goreleaser:
Expand All @@ -17,9 +17,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
go-version: 1.19

- run: echo https://github.com/cosmos/relayer/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md
# setup gopath
- name: Set PATH
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash

- run: echo https://github.com/icon-project/ibc-relay/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md

- name: setup release environment
run: |-
Expand Down
9 changes: 4 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
project_name: Cosmos Relayer

project_name: ibc-relay
builds:
- id: darwin-amd64
main: ./main.go
Expand All @@ -14,7 +13,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/relayer/v2/cmd.Version={{ .Tag }}
- -s -w -X github.com/icon-project/ibc-relay/v2/cmd.Version={{ .Tag }}
- id: darwin-arm64
main: ./main.go
binary: rly
Expand All @@ -28,7 +27,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/relayer/v2/cmd.Version={{ .Tag }}
- -s -w -X github.com/icon-project/ibc-relay/v2/cmd.Version={{ .Tag }}
- id: linux-amd64
main: ./main.go
binary: rly
Expand All @@ -42,7 +41,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/relayer/v2/cmd.Version={{ .Tag }}
- -s -w -X github.com/icon-project/ibc-relay/v2/cmd.Version={{ .Tag }}
- id: linux-arm64
main: ./main.go
binary: rly
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
![banner](./docs/images/comp.gif)

[![Project Status: Initial Release](https://img.shields.io/badge/repo%20status-active-green.svg?style=flat-square)](https://www.repostatus.org/#active)
![GitHub Workflow Status](https://github.com/cosmos/relayer/actions/workflows/build.yml/badge.svg)
![GitHub Workflow Status](https://github.com/icon-project/ibc-relay/actions/workflows/build.yml/badge.svg)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue?style=flat-square&logo=go)](https://godoc.org/github.com/cosmos/relayer)
[![Go Report Card](https://goreportcard.com/badge/github.com/cosmos/relayer)](https://goreportcard.com/report/github.com/cosmos/relayer)
[![License: Apache-2.0](https://img.shields.io/github/license/cosmos/relayer.svg?style=flat-square)](https://github.com/cosmos/relayer/blob/main/LICENSE)
[![Lines Of Code](https://img.shields.io/tokei/lines/github/cosmos/relayer?style=flat-square)](https://github.com/cosmos/relayer)
[![Version](https://img.shields.io/github/tag/cosmos/relayer.svg?style=flat-square)](https://github.com/cosmos/relayer/latest)
[![Go Report Card](https://goreportcard.com/badge/github.com/icon-project/ibc-relay)](https://goreportcard.com/report/github.com/icon-project/ibc-relay)
[![License: Apache-2.0](https://img.shields.io/github/license/icon-project/ibc-relay.svg?style=flat-square)](https://github.com/icon-project/ibc-relay/blob/main/LICENSE)
[![Lines Of Code](https://img.shields.io/tokei/lines/github/icon-project/ibc-relay?style=flat-square)](https://github.com/icon-project/ibc-relay)
[![Version](https://img.shields.io/github/tag/icon-project/ibc-relay.svg?style=flat-square)](https://github.com/icon-project/ibc-relay/latest)
[![codecov](https://codecov.io/gh/icon-project/ibc-relay/branch/main/graph/badge.svg?token=3OSG4KPSPZ)](https://codecov.io/gh/icon-project/ibc-relay)
</div>

Expand Down

0 comments on commit bdf1cc2

Please sign in to comment.