diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..104493d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,32 @@ +name: GO Releaser + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v4 + - + name: Install GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + install-only: true + - name: Release + run: | + goreleaser release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index bf7a160..0e24329 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea *-backup -*.yaml \ No newline at end of file +conf.yaml +multi.yaml \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..90f33bc --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,24 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + binary: gombak + goarch: + - amd64 + - "386" + goos: + - linux + - darwin + - windows +archives: + - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" +checksum: + name_template: 'checksums.txt' +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' \ No newline at end of file