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 31, 2021
1 parent 814551d commit 542a7fd
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
fail-fast: false
matrix:
go:
- "1.13.x"
- "1.14.x"
- "1.15.x"
- "1.16.x"
- "1.17.x"
os:
- ubuntu-latest
- macos-latest
Expand All @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
go:
- "1.15.x"
- "1.17.x"
steps:
- name: Install Go
uses: actions/setup-go@v2
Expand Down
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 @@ -46,6 +46,7 @@ vendor/
Godeps/

# CI/CD
coverage.txt
benchstats
.benchruns
.benchstats.csv
Expand Down
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
project_name: jettison
builds:
- skip: true
release:
github:
owner: wI2L
name: jettison
draft: true
prerelease: auto
env_files:
github_token: ~/.goreleaser_github_token

0 comments on commit 542a7fd

Please sign in to comment.