diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad8afeb..098079e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,7 @@ jobs: path: target/${{ matrix.target }}/release/pls docs: - name: Publish docs + name: Build docs runs-on: ubuntu-latest needs: - build @@ -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 "hi@dhruvkb.dev"