mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
37 lines
885 B
YAML
37 lines
885 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18
|
|
- name: git cleanup
|
|
run: git clean -f
|
|
- name: Inject version
|
|
uses: jacobtomlinson/gha-find-replace@v2
|
|
with:
|
|
find: 'v0.0.0'
|
|
replace: ${{ github.ref_name }}
|
|
include: "pkg/dashboard/static/datadog.js"
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Test Binary Versions
|
|
run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help"
|