Skip to content

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansingh committed Oct 19, 2020
1 parent c6b3543 commit cc818f6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
builds:
- dir: .goreleaser

goarch:
- amd64

hooks:
post: ./.goreleaser/fetch-artifacts.sh

checksum:
name_template: 'checksums.txt'

changelog:
sort: asc
7 changes: 7 additions & 0 deletions .goreleaser/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("dummy package for goreleaser")
}
11 changes: 11 additions & 0 deletions .goreleaser/fetch-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -euo pipefail

mkdir -p artifacts
buildkite-agent artifact download '*' ./artifacts

for dist in "darwin_amd64" "linux_amd64"; do
mkdir -p "dist/$dist"
cp "artifacts/$dist" "dist/$dist/pixlet"
done

0 comments on commit cc818f6

Please sign in to comment.