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

Checkpoint

Checkpoint #3

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
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean -f kubectl/cmd/applybuild/.goreleaser.yaml
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: kubectl-applybuild-plugin
path: |
dist/*
!dist/artifacts.json
!dist/metadata.yaml
!dist/config.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}