Skip to content

Commit

Permalink
releaser?
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Nov 23, 2023
1 parent f98ddaa commit 8f4506e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
build_and_deploy:
runs-on: [ubuntu-latest]
needs: [lint]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- run: git reset --hard
- run: git clean -f -d
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
project_name: protoc-gen-avro
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
dir: .
goos:
- linux
- darwin
binary: protoc-gen-avro
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
#brews:
# -
# name: global_docker_compose
# folder: Formula
# tap:
# owner: wishabi
# name: homebrew-flipp
# token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}"
# description: Standardized and centralized Docker compose command

0 comments on commit 8f4506e

Please sign in to comment.