using ld releaser
@@ -6,20 +6,23 @@ on:
jobs:
release:
- name: Release on GitHub
runs-on: ubuntu-latest
steps:
- - name: Check out code
- uses: actions/checkout@v1
-
- - name: Validates GO releaser config
- uses: docker://goreleaser/goreleaser:latest
+ -
+ name: "Check out code"
+ uses: actions/checkout@v2
with:
- args: check
-
- - name: Create release on GitHub
- uses: docker://goreleaser/goreleaser:latest
+ fetch-depth: 0
+ -
+ name: "Set up Go"
+ uses: actions/setup-go@v2
with:
- args: release
+ go-version: 1.14
+ -
env:
- GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
\ No newline at end of file
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+ name: "Create release on GitHub"
+ uses: goreleaser/goreleaser-action@v2
+ with:
+ args: "release --rm-dist"
+ version: latest
\ No newline at end of file
