cosmium/.github/workflows/release.yml

38 lines
822 B
YAML
Raw Normal View History

2024-02-26 20:41:33 +00:00
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
2024-04-06 16:55:15 +01:00
packages: write
2024-02-26 20:41:33 +00:00
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.6
2024-04-06 16:55:15 +01:00
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
2024-02-26 20:41:33 +00:00
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}