Skip to content

Commit

Permalink
ci: add goreleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-soubeyrand committed Oct 3, 2020
1 parent b449453 commit 86c3c28
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Release"

on:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
- name: "Set up Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.13"
- name: "Run GoReleaser"
uses: "goreleaser/goreleaser-action@v2"
with:
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
@@ -1 +1,2 @@
dist/
helm-sops
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
project_name: "helm-sops"

before:
hooks:
- "go mod download"

builds:
- binary: "helm-sops"
flags: "-trimpath"
ldflags: "-s -w"
mod_timestamp: "{{ $.CommitTimestamp }}"
env:
- "CGO_ENABLED=0"

release:
prerelease: "auto"

changelog:
filters:
exclude:
- "^(refactor|style|test|docs|ci)(\\([^)]+\\))?(!)?:"

0 comments on commit 86c3c28

Please sign in to comment.