Files
helm-dashboard/.github/workflows/release.yaml
2022-10-04 08:45:13 +01:00

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: Inject version
uses: jacobtomlinson/gha-find-replace@v2
with:
find: 'v0.0.0'
replace: ${{ github.ref_name }}
include: "pkg/dashboard/static/datadog.js"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: git cleanup
run: git clean -f
- 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"