php-fpm-exporter/.github/workflows/release.yml
dependabot[bot] d5d3a168d0
chore(deps): bump actions/setup-go from v1 to v2.1.3 (#116)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from v1 to v2.1.3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v1...37335c7bb261b353407cff977110895fa0b4f7d8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 23:19:37 +11:00

31 lines
730 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@v1
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}