Merge pull request #36 from kndpio/35-set-version-information-for-on-… #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release preaparation | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
release-linux-amd64: | |
name: release linux/amd64 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ vars.GITHUB_REF_NAME }} | |
skipIfReleaseExists: true | |
- uses: wangyoucao577/go-release-action@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: linux | |
goarch: amd64 | |
project_path: "./cmd/kndp" | |
binary_name: "kndp" | |
ldflags: -X 'main.Version=${{ vars.GITHUB_REF_NAME }}' |