php-fpm-exporter/.github/workflows/release.yml

32 lines
730 B
YAML
Raw Normal View History

2020-03-11 00:54:39 +00:00
name: Release
on: [release]
jobs:
release:
runs-on: ubuntu-latest
2020-03-11 00:52:29 +00:00
# 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 }}