Commit b729be8
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/*