Skip to content

dep: Bump github.com/rs/zerolog from 1.32.0 to 1.33.0 (#14) #11

dep: Bump github.com/rs/zerolog from 1.32.0 to 1.33.0 (#14)

dep: Bump github.com/rs/zerolog from 1.32.0 to 1.33.0 (#14) #11

Workflow file for this run

name: CD
on:
push:
branches:
- main
tags:
- v*
permissions:
contents: write
id-token: write
packages: write
jobs:
tag:
name: Tag
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: "[Checkout] repository"
uses: actions/checkout@v4
- name: "[Setup] Install Go"
uses: actions/setup-go@v5
with:
go-version: stable
- name: "[Setup] Install svu"
run: go install github.com/caarlos0/svu@latest
- name: "[CD] Tag release"
if: github.ref == 'refs/heads/main'
run: |
git fetch --tags --force
if [ $(svu current) != $(svu next) ]; then
gh release create $(svu next)
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- name: "[Checkout] repository"
uses: actions/checkout@v4
- name: "[Setup] Install Go"
uses: actions/setup-go@v5
with:
go-version: stable
- name: "[Setup] Install UPX"
run: sudo apt-get install -y upx
- name: "[Setup] qemu"
uses: docker/setup-qemu-action@v3
- name: "[Setup] buildx"
uses: docker/setup-buildx-action@v3
- name: ghcr login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: "semver"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}