mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-18 04:26:47 +01:00
36 lines
787 B
YAML
36 lines
787 B
YAML
|
name: goreleaser
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- "v*"
|
||
|
|
||
|
jobs:
|
||
|
goreleaser:
|
||
|
runs-on: ubuntu-latest
|
||
|
environment: build
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
|
||
|
- name: Set up Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: 1.19
|
||
|
|
||
|
- name: Login to Docker Registry
|
||
|
uses: docker/login-action@v1
|
||
|
with:
|
||
|
registry: ghcr.io
|
||
|
username: ${{ github.repository_owner }}
|
||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||
|
- name: Run GoReleaser
|
||
|
uses: goreleaser/goreleaser-action@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
args: --parallelism 1 --rm-dist --skip-validate
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|