Skip to content

Commit

Permalink
Merge pull request #76 from displague/release-on-tag-push
Browse files Browse the repository at this point in the history
run goreleaser when tags are pushed to github
  • Loading branch information
displague committed Aug 12, 2020
2 parents dd3619b + d5ca00b commit 9ce0ac0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 5 additions & 8 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ When breaking changes are introduced bump the minor or major accordingly, restti

## Releasing

Install goreleaser
Push the tag to GitHub and [GitHub Workflows](.github/workflows/release.yml) and [GoReleaser](.goreleaser.yml) will do the rest.

Run:

```
export GITHUB_TOKEN=...
goreleaser
```sh
git push origin --tags 0.0.9
```

This will build and push binaries for several different OS and Architecture combinations.
This will build and release binaries for several different OS and Architecture combinations.

Any special instructions or notes can be entered by editing the release notes at https://github.com/packethost/packet-cli/releases
Any special instructions or notes should be added by editing the release notes that goreleaser publishes. These notes can be found at https://github.com/packethost/packet-cli/releases

0 comments on commit 9ce0ac0

Please sign in to comment.