Skip to content

Commit

Permalink
Add docs to build
Browse files Browse the repository at this point in the history
  • Loading branch information
msfstef committed Aug 8, 2024
1 parent ee60c42 commit 60ee3aa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run: pnpm -r stylecheck

build-wasm-postgres:
name: Build PGlite WASM dependencies
uses: ./.github/workflows/build_wasm_postgres.yml
secrets: inherit

Expand Down Expand Up @@ -141,8 +142,8 @@ jobs:
- name: Test packages
run: pnpm --filter="...^pglite" test

publish-build-outputs:
name: Publish build outputs
publish-website-with-demos:
name: Publish website with demos
runs-on: ubuntu-22.04
needs: [build-and-test-pglite, build-and-test-pglite-dependents]
steps:
Expand Down Expand Up @@ -177,6 +178,12 @@ jobs:
run: |
bash ./cibuild.sh demo-site
- name: Build docs
working-directory: ./docs
run: |
pnpm run docs:build
cp -r ./.vitepress/dist/* /tmp/web/
- name: Upload Demos to Github artifacts
id: upload-demos
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -204,7 +211,7 @@ jobs:
- Demos: ${{ steps.upload-demos.outputs.artifact-url }}
edit-mode: append

- name: Deploy demo to Netlify
- name: Deploy website to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: '/tmp/web'
Expand Down

0 comments on commit 60ee3aa

Please sign in to comment.