Skip to content

Merge pull request #104 from karimra/renovate/github.com-bramvdbogaer… #29

Merge pull request #104 from karimra/renovate/github.com-bramvdbogaer…

Merge pull request #104 from karimra/renovate/github.com-bramvdbogaer… #29

Workflow file for this run

---
name: release
on:
push:
tags:
- v*
env:
GOVER: 1.21.1
GORELEASER_VER: v0.180.3
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}
- run: go test -cover ./...
env:
CGO_ENABLED: 0
release:
runs-on: ubuntu-22.04
needs:
- test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}
- name: Login to github container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Release with goreleaser
uses: goreleaser/goreleaser-action@v5
with:
version: ${{ env.GORELEASER_VER }}
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}