7aca9827aa
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from v1 to v2.2.1. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Changelog](https://github.com/goreleaser/goreleaser-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v1...6389ff5bd287fd6948a7ccda8af8da4f0bbc856a) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
31 lines
734 B
YAML
31 lines
734 B
YAML
name: Release
|
|
on: [release]
|
|
jobs:
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
# if: startsWith(github.ref, 'refs/tags/')
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Unshallow
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2.1.3
|
|
with:
|
|
go-version: 1.14
|
|
id: go
|
|
|
|
- name: Login to docker hub
|
|
run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2.2.1
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
key: ${{ secrets.YOUR_PRIVATE_KEY }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|