From 8f0fbd0ffcaf2f5f3acbf4a7752b906ce6211d25 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Fri, 8 Mar 2024 19:22:14 +0100 Subject: [PATCH] chore(ci): add test build for docs (#3573) --- .github/workflows/test-build-docs.yml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test-build-docs.yml diff --git a/.github/workflows/test-build-docs.yml b/.github/workflows/test-build-docs.yml new file mode 100644 index 0000000000..540421bee4 --- /dev/null +++ b/.github/workflows/test-build-docs.yml @@ -0,0 +1,35 @@ + +name: test build docs +on: + workflow_dispatch: + pull_request: + paths: + - '.github/workflows/test-build-docs.yml' + - 'docs/**' + +jobs: + deploy-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-bun + with: + working-directory: ./docs + + - name: Cache build + uses: actions/cache@v3 + with: + path: | + docs/.next/cache + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }} + ${{ runner.os }}-nextjs- + + - name: Build docs + run: | + bun --cwd docs build + touch docs/out/.nojekyll \ No newline at end of file