mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-01 03:25:19 +00:00
Fix passing ldflags to the build process.
This commit is contained in:
@@ -161,15 +161,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Compile binary
|
- name: Compile binary
|
||||||
uses: thatisuday/go-cross-build@v1
|
uses: thatisuday/go-cross-build@v1.0.2
|
||||||
env:
|
|
||||||
INPUT_LDFLAGS: "-s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }}"
|
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,darwin/amd64,windows/amd64,linux/arm64,darwin/amd64
|
platforms: linux/amd64,darwin/amd64,windows/amd64,linux/arm64,darwin/amd64
|
||||||
name: semver-gen
|
name: semver-gen
|
||||||
package: ./
|
package: ./
|
||||||
compress: false
|
compress: false
|
||||||
dest: dist
|
dest: dist
|
||||||
|
ldflags: -s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }}
|
||||||
- name: Get list of the commits since last release
|
- name: Get list of the commits since last release
|
||||||
run: |
|
run: |
|
||||||
echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes
|
echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes
|
||||||
|
|||||||
Reference in New Issue
Block a user