Skip to content

Update validators.md (#2300) #357

Update validators.md (#2300)

Update validators.md (#2300) #357

Workflow file for this run

name: Build docs on PR merge
on:
push:
branches:
- master
workflow_dispatch:
jobs:
merge_job:
runs-on: ubuntu-latest
concurrency:
group: build-docs
cancel-in-progress: true
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: actions/setup-node@v2
with:
node-version: "18"
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/**/.cache
key: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
- name: Set Git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
- name: Merge master back to build
run: |
git fetch
git checkout build
git pull
git merge --no-ff master -m "Auto-merge main back to build"
- name: Install dependencies and build
run: |
cd website
yarn
yarn build
- name: Upload to Crowdin
continue-on-error: true
run: |
cd website
yarn crowdin:upload
- name: Commit build
run: |
git add -f ./website/build ./website/.docusaurus ./website/i18n
if git commit -m "add new build";then
git push
else
echo "Nothing to commit"
fi
env:
NODE_OPTIONS: --max-old-space-size=8192
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
REACT_APP_PUBLIC_POSTHOG_KEY: ${{ secrets.REACT_APP_PUBLIC_POSTHOG_KEY }}
REACT_APP_PUBLIC_POSTHOG_HOST: ${{ secrets.REACT_APP_PUBLIC_POSTHOG_HOST }}