only run github actions on tag to save minutes, build all the binaries

pull/58/head v2.2.0
Simon Let 6 years ago
parent 209abcee9e
commit c8faccf445
  1. 5
      .github/workflows/release.yaml
  2. 47
      .goreleaser.yml

@ -1,8 +1,9 @@
name: goreleaser
on:
pull_request:
push:
create:
tags:
- v*
jobs:
goreleaser:

@ -10,19 +10,18 @@ project_name: resh
builds:
# You can have multiple builds defined as a yaml list
-
# ID of the build.
# Defaults to the project name.
id: "daemon"
# id: "daemon"
# Path to main.go file or main package.
# Default is `.`.
main: ./cmd/daemon/
# id: ./cmd/daemon
# Binary name.
# Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
# Default is the name of the project directory.
binary: resh-daemon
# binary: resh-daemon
# Hooks can be used to customize the final binary,
# for example, to run generators.
@ -31,6 +30,46 @@ builds:
# hooks:
# pre: rice embed-go
# post: ./script.sh
-
id: "collect"
main: ./cmd/collect
binary: resh-collect
-
id: "config"
main: ./cmd/config
binary: resh-config
-
id: "control"
main: ./cmd/control
binary: resh-control
-
id: "daemon"
main: ./cmd/daemon
binary: resh-daemon
-
id: "evaluate"
main: ./cmd/evaluate
binary: resh-evaluate
-
id: "event"
main: ./cmd/event
binary: resh-event
-
id: "inspect"
main: ./cmd/inspect
binary: resh-inspect
-
id: "postcollect"
main: ./cmd/postcollect
binary: resh-postcollect
-
id: "sanitize"
main: ./cmd/sanitize
binary: resh-sanitize
-
id: "session-init"
main: ./cmd/session-init
binary: resh-session-init
# signs:
# - artifacts: checksum

Loading…
Cancel
Save