feat: goreleaser

Maas Lalani created

Change summary

.github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++
.gitignore                    |  3 ++-
2 files changed, 33 insertions(+), 1 deletion(-)

Detailed changes

.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 }}

.gitignore 🔗

@@ -1,4 +1,5 @@
 *.pdf
 *.json
 *.yaml
-*.yml
+*.yml
+!.github/workflows/*.yml