Skip to content

.github/workflows/release.yaml #14

.github/workflows/release.yaml

.github/workflows/release.yaml #14

Workflow file for this run

on:
release:
types: [created]
jobs:
get-tags:
runs-on: ubuntu-latest
steps:
- id: commit
uses: pr-mpt/actions-commit-hash@v2
outputs:
short-commit: ${{steps.commit.outputs.short}}
release:
name: make release
needs: get-tags
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [386, amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "kubectl-history"
ldflags: "-X github.com/wd/kubectl-history/cmd.Version=${{github.ref_name}}-${{needs.get-tags.outputs.short-commit}}"