Skip to content

Commit

Permalink
Add back goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
creekorful committed Jan 11, 2021
1 parent fede4ba commit ddcf5b4
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Delivery

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Continuous Integration

on:
push:
Expand Down
45 changes: 45 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
before:
hooks:
- go mod download
builds:
- id: bs-blacklister
main: ./cmd/bs-blacklister/bs-blacklister.go
binary: bs-blacklister
goos:
- linux
goarch:
- amd64
- id: bs-configapi
main: ./cmd/bs-configapi/bs-configapi.go
binary: bs-configapi
goos:
- linux
goarch:
- amd64
- id: bs-crawler
main: ./cmd/bs-crawler/bs-crawler.go
binary: bs-crawler
goos:
- linux
goarch:
- amd64
- id: bs-indexer
main: ./cmd/bs-indexer/bs-indexer.go
binary: bs-indexer
goos:
- linux
goarch:
- amd64
- id: bs-scheduler
main: ./cmd/bs-scheduler/bs-scheduler.go
binary: bs-scheduler
goos:
- linux
goarch:
- amd64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-{{ .ShortCommit }}"
release:
prerelease: true

0 comments on commit ddcf5b4

Please sign in to comment.