From 2a556ba49bed7b07309421c6c9995d8669ca8139 Mon Sep 17 00:00:00 2001 From: Ryan Schumacher Date: Fri, 4 Oct 2024 15:33:38 -0500 Subject: [PATCH] Add-goreleaser (#10) * chore: add goreleaser * add workflow * Standardize --- .github/workflows/release.yaml | 21 +++++++++++++++++++++ .gitignore | 3 ++- .goreleaser.yaml | 8 ++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..adb16a6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +name: release + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + name: Release Please + id: release + with: + token: ${{ secrets.RELEASE_PLEASE_PAT }} + release-type: simple \ No newline at end of file diff --git a/.gitignore b/.gitignore index 55895f9..542f13c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ # tests coverage.out coverage.html -junit.xml \ No newline at end of file +junit.xml +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..42b020c --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,8 @@ +version: 2 +builds: + - skip: true +release: + github: + owner: jrschumacher + name: go-spaserve + prerelease: auto \ No newline at end of file