diff --git a/.github/workflows/build-docsite.yml b/.github/workflows/build-docsite.yml new file mode 100644 index 00000000..71251865 --- /dev/null +++ b/.github/workflows/build-docsite.yml @@ -0,0 +1,33 @@ +name: build docsite + +on: + push: + branches: + - master + - test-docsite + paths: + - 'docsite/**' + pull_request: + branches: + - master + - test-docsite + paths: + - 'docsite/**' + +jobs: + build: + name: build docsite + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + cache-dependency-path: './docsite/yarn.lock' + - name: Install dependencies + run: cd docsite && yarn install --frozen-lockfile + - name: Build website + run: cd docsite && yarn build \ No newline at end of file