doggo/.github/workflows/release.yml

37 lines
853 B
YAML

name: goreleaser
on:
push:
tags:
- "*"
env:
REGISTRY: ghcr.io
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
DOCKER_CLI_EXPERIMENTAL: enabled
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}