doggo/.github/workflows/release.yml

43 lines
1006 B
YAML
Raw Normal View History

2020-12-18 08:24:57 +01:00
name: goreleaser
on:
push:
tags:
- '*'
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.15
2020-12-18 08:25:05 +01:00
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_GORELEASER_TOKEN }}
-
name: Install Snapcraft and Log In
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }}
2020-12-18 08:24:57 +01:00
-
name: Run GoReleaser
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
GITHUB_TOKEN: ${{ secrets.GH_GORELEASER_TOKEN }}