Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Update goreleaser

Update goreleaser #8

name: goreleaser
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
- id: build-build-remote
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean -f kubectl/build-remote/.goreleaser.yaml
- id: upload-build-remote
name: Upload assets
uses: actions/upload-artifact@v3
with:
name: kubectl-build-remote-plugin
path: |
dist/*
!dist/artifacts.json
!dist/metadata.yaml
!dist/config.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}