Skip to content

Commit

Permalink
Build docs for CI on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Oct 7, 2024
1 parent 8c7c869 commit 5066e96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
path: target/${{ matrix.target }}/release/pls

docs:
name: Publish docs
name: Build docs
runs-on: ubuntu-latest
needs:
- build
Expand Down Expand Up @@ -151,12 +151,15 @@ jobs:
working-directory: examples/
run: just all

- name: Build and publish docs
if: github.event_name == 'push'
- name: Build docs
working-directory: docs/
run: |
pnpm build
cd dist
- name: Publish docs
if: github.event_name == 'push'
working-directory: docs/dist/
run: |
git init --initial-branch=gh-pages
git config user.name "Dhruv Bhanushali"
git config user.email "[email protected]"
Expand Down

0 comments on commit 5066e96

Please sign in to comment.