Skip to content

Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.11.0 to 2.12.0… #123

Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.11.0 to 2.12.0…

Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.11.0 to 2.12.0… #123

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Risk.Ident GmbH <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: goreleaser
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run GoReleaser and publish
uses: goreleaser/goreleaser-action@v6
if: "startsWith(github.ref, 'refs/tags/')"
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser, but skip publish
uses: goreleaser/goreleaser-action@v6
if: "!startsWith(github.ref, 'refs/tags/')"
with:
version: latest
args: release --clean --skip=publish --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}