From a9650bb0a9e124233e75a1e0759c6ca93f370375 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Wed, 28 Jun 2023 22:52:07 -0400 Subject: [PATCH] feat: goreleaser --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..344b379 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + # packages: write + # issues: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version: '>=1.19.3' + cache: true + - uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 9695e57..52ce026 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pdf *.json *.yaml -*.yml \ No newline at end of file +*.yml +!.github/workflows/*.yml