Skip to content

Commit

Permalink
only run github actions on tag to save minutes, build all the binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
curusarn committed Dec 15, 2019
1 parent 209abce commit c8faccf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: goreleaser

on:
pull_request:
push:
create:
tags:
- v*

jobs:
goreleaser:
Expand Down
47 changes: 43 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit c8faccf

Please sign in to comment.