From 0fec07b3c99373e76bdb73c6e08c87ea99eb8bf2 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Sat, 18 Nov 2023 12:09:09 -0500 Subject: [PATCH] feat: set build flags? --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1bc6ea0..46a3bcc6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,7 +33,10 @@ jobs: with: go-version: "1.19" - name: Build - run: go build -o stories ./cmd/stories/main.go + run: > + go build + -ldflags "-X github.com/cfoust/cy/pkg/version.Version=\"readme\"" + -o stories ./cmd/stories/main.go - uses: charmbracelet/vhs-action@v1 with: path: "ci/cy.tape"