Skip to content

Commit

Permalink
fix: vhs in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Nov 27, 2023
1 parent 4efbb94 commit 9164891
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9164891

Please sign in to comment.