From 60ee3aa0ac3b036e02431b851747c13ba606797b Mon Sep 17 00:00:00 2001 From: msfstef Date: Thu, 8 Aug 2024 19:17:00 +0300 Subject: [PATCH] Add docs to build --- .github/workflows/build_and_test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 08c1e63f..fe59425b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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 @@ -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: @@ -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 @@ -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/actions-netlify@v3.0 with: publish-dir: '/tmp/web'