summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2021-09-03 10:42:13 -0600
committermo khan <mo@mokhan.ca>2021-09-03 10:42:13 -0600
commitb729be837fdd1a42aa4faf90d1d8808148f66c7a (patch)
treefcc106e6283798190ff30d146d1952d5a50435b7
parent62448bf8c7e3a3cd70beb249fd3c4b0cdd3e170d (diff)
install workflow to package and release artifactsv0.1.0
-rw-r--r--.github/workflows/release.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..549b62f
--- /dev/null
+++ b/.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/*