Skip to content

Commit

Permalink
chore: add goreleaser Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wI2L committed Aug 30, 2021
1 parent 1d70c73 commit fdd6214
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Godeps/
benchstats
.benchruns
coverage.txt
dist/
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
project_name: jsondiff
builds:
- skip: true
release:
github:
owner: wI2L
name: jsondiff
draft: true
prerelease: auto
env_files:
github_token: ~/.goreleaser_github_token

0 comments on commit fdd6214

Please sign in to comment.