Skip to content

Commit

Permalink
Add .goreleaser files
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Dec 14, 2021
1 parent 2e6fc0a commit e6054c4
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
archives:
- id: archive
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
before:
hooks:
- make init_submodules
- make codegen
- make generate_schema
blobs:
- bucket: get.pulumi.com
folder: releases/plugins/
ids:
- archive
provider: s3
region: us-west-2
builds:
- binary: pulumi-resource-command
dir: provider
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- darwin
- windows
- linux
ldflags:
- -X github.com/pulumi/pulumi-command/provider/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-command/
changelog:
skip: true
release:
disable: true
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT'
34 changes: 34 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
archives:
- id: archive
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
before:
hooks:
- make gen
blobs:
- bucket: get.pulumi.com
folder: releases/plugins/
ids:
- archive
provider: s3
region: us-west-2
builds:
- binary: pulumi-resource-command
dir: provider
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- darwin
- windows
- linux
ldflags:
- -X github.com/pulumi/pulumi-command/provider/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-command/
changelog:
skip: true
release:
disable: false
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT'
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pulumi/pulumi-package-command/examples
module github.com/pulumi/pulumi-command/examples

go 1.17

Expand Down

0 comments on commit e6054c4

Please sign in to comment.