Skip to content

Commit

Permalink
add release workflow, update installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
avarabyeu committed Apr 3, 2024
1 parent b274a93 commit 29be720
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# .github/workflows/release.yml
name: goreleaser

on:
pull_request:
push:
# run only against tags
tags:
- "*"

permissions:
contents: write
# packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
# More assembly might be required: Docker logins, GPG, etc.
# It all depends on your needs.
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reportportal/goRP/build.yml?branch=master)
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/eBay/fabio/master/LICENSE)
![Build Status](https://github.com/golangci/golangci-lint/workflows/CI/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/reportportal/goRP)](https://goreportcard.com/report/github.com/reportportal/goRP)
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/reportportal/goRP/master/LICENSE)
[![License](https://img.shields.io/github/license/golangci/golangci-lint)](/LICENSE)
[![Release](https://img.shields.io/github/release/reportportal/goRP.svg)](https://github.com/reportportal/goRP/releases/latest)
[![GitHub Releases Stats of goRP](https://img.shields.io/github/downloads/reportportal/goRP/total.svg?logo=github)](https://somsubhra.github.io/github-release-stats/?username=reportportal&repository=gorP)

# goRP

Golang Client and CLI Utility for [ReportPortal](https://reportportal.io)

## Installation

- Via Go Install
```sh
go install github.com/reportportal/goRP@latest
```
- Via cURL (passing version and arch)
```sh
curl -sL https://github.com/avarabyeu/goRP/releases/download/v5.0.2/goRP_5.0.2_darwin_amd64.tar.gz | tar zx -C .
```
- Via cURL (latest one)
```sh
curl -s https://api.github.com/repos/reportportal/goRP/releases/latest | \
jq -r '.assets[] | select(.name | contains ("tar.gz")) | .browser_download_url' | \
grep "$(uname)_$(arch)" | \
xargs curl -sL | tar zx -C .
```
## Usage

```
Expand Down

0 comments on commit 29be720

Please sign in to comment.