2021-11-23 15:19:59 +01:00
|
|
|
name: PR -> Build Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- website/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate:
|
2024-05-23 14:14:09 +02:00
|
|
|
name: build # temporary solution to trick branch protection rules
|
2021-11-23 15:19:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-05 10:19:57 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-24 13:08:04 +01:00
|
|
|
- name: Build docs
|
2022-03-02 12:30:12 +01:00
|
|
|
env:
|
|
|
|
UNLEASH_FEEDBACK_TARGET_URL: ${{ secrets.DOCS_FEEDBACK_TARGET_URL }}
|
|
|
|
UNLEASH_PROXY_CLIENT_KEY: ${{ secrets.UNLEASH_PROXY_CLIENT_KEY_DEVELOPMENT }}
|
|
|
|
UNLEASH_PROXY_URL: ${{ secrets.UNLEASH_PROXY_URL_DEVELOPMENT }}
|
2021-11-23 15:19:59 +01:00
|
|
|
run: |
|
|
|
|
# Build the site
|
2023-09-21 11:46:39 +02:00
|
|
|
cd website && yarn
|
|
|
|
# give better error messages when the build fails (refer to website/readme.md#troubleshooting)
|
|
|
|
echo "Removing references to chalk in node_modules/@docusaurus/core/lib/client/serverEntry.js"
|
|
|
|
sed -i 's/chalk\(\w\|\.\)\+//g' node_modules/@docusaurus/core/lib/client/serverEntry.js
|
|
|
|
echo "Chalk removed"
|
|
|
|
yarn build
|