Files
mxpv-podsync/.github/workflows/release.yml
T
2021-12-31 12:56:30 +02:00

35 lines
757 B
YAML

name: Release
on:
push:
tags:
- 'v*'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/[email protected]
# Required for the changelog to work correctly
- run: git fetch --prune --unshallow
- uses: actions/[email protected]
with:
go-version: 1.15
- env:
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: docker login --username "$DOCKER_LOGIN" --password "$DOCKER_PASSWORD"
- uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}