Commit b729be8

mo khan <mo@mokhan.ca>
2021-09-03 16:42:13
install workflow to package and release artifacts tag: v0.1.0
1 parent 62448bf
Changed files (1)
.github
workflows
.github/workflows/release.yml
@@ -0,0 +1,26 @@
+name: goreleaser
+on:
+  workflow_dispatch:
+  push:
+    tags:
+      - "v*"
+jobs:
+  goreleaser:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - uses: actions/setup-go@v2
+        with:
+          go-version: 1.17
+      - uses: goreleaser/goreleaser-action@v2
+        with:
+          version: latest
+          args: release --rm-dist
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      - uses: actions/upload-artifact@v2
+        with:
+          name: http-server
+          path: dist/*