diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..eaef63c --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ab906d..a0b85b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Continuous Integration on: push: diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..02825ca --- /dev/null +++ b/.goreleaser.yaml @@ -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 \ No newline at end of file