doggo/.github/workflows/release.yml

38 lines
865 B
YAML
Raw Normal View History

2020-12-18 08:24:57 +01:00
name: goreleaser
on:
push:
tags:
2021-02-18 15:18:29 +01:00
- "*"
2020-12-18 08:24:57 +01:00
2021-12-20 17:27:08 +01:00
env:
REGISTRY: ghcr.io
2020-12-18 08:24:57 +01:00
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
2021-02-18 15:18:29 +01:00
- name: Checkout
2020-12-18 08:24:57 +01:00
uses: actions/checkout@v2
with:
fetch-depth: 0
2021-02-18 15:18:29 +01:00
- name: Set up Go
2020-12-18 08:24:57 +01:00
uses: actions/setup-go@v2
with:
go-version: 1.19
2021-12-20 17:27:08 +01:00
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2020-12-18 08:25:05 +01:00
with:
2021-12-20 17:27:08 +01:00
registry: ${{ env.REGISTRY }}
2022-03-24 08:13:33 +01:00
username: ${{ github.repository_owner }}
2021-12-20 17:27:08 +01:00
password: ${{ secrets.GITHUB_TOKEN }}
2022-03-24 08:13:33 +01:00
2021-02-18 15:18:29 +01:00
- name: Run GoReleaser
2020-12-18 08:24:57 +01:00
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
2020-12-18 08:25:05 +01:00
DOCKER_CLI_EXPERIMENTAL: enabled
2021-12-20 17:27:08 +01:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}