From 91648913963e157c39ceb672cfc7899795cf66aa Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Sun, 26 Nov 2023 20:54:02 -0500 Subject: [PATCH] fix: vhs in CI --- .github/workflows/docs.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 93d77b68..d874da67 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,6 +29,17 @@ jobs: with: go-version: "1.19" + - name: Build + run: > + go build + -ldflags "-X github.com/cfoust/cy/pkg/version.Version=${{ steps.cy.outputs.release }}" + -o docs/stories + ./cmd/stories/main.go + + - uses: charmbracelet/vhs-action@v1 + with: + path: "" + - name: Build book run: | go run cmd/docs/main.go api > docs/src/generated-api.md @@ -40,16 +51,6 @@ jobs: with: repository: cfoust/cy - - name: Build - run: > - go build - -ldflags "-X github.com/cfoust/cy/pkg/version.Version=${{ steps.cy.outputs.release }}" - -o docs/stories - ./cmd/stories/main.go - - uses: charmbracelet/vhs-action@v1 - with: - path: "ci/cy.tape" - - name: Setup pages uses: actions/configure-pages@v2 - name: Upload site