Skip to content

Fix naming convention on Github Action. (#131) #27

Fix naming convention on Github Action. (#131)

Fix naming convention on Github Action. (#131) #27

Workflow file for this run

name: Releasing
on:
push:
tags:
- "*"
permissions:
packages: write
jobs:
goreleaser:
name: Release Application
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-file: "go.mod"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Test application
run: go test -v ./...
- name: Docker login
uses: docker/login-action@v3
with:
registry: "ghcr.io"
username: ${{ github.repository_owner}}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Release application to Github
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]