Skip to content

fix: add safeguard for querying app settings (#2765) #809

fix: add safeguard for querying app settings (#2765)

fix: add safeguard for querying app settings (#2765) #809

Workflow file for this run

name: docusaurus
on:
push:
branches:
- main # default branch name for each repo that docs should be push from
- develop
env:
branch_map: '{"refs/heads/main": "production", "refs/heads/develop": "staging"}'
jobs:
push_docusaurus:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Push to stream-chat-docusaurus
uses: GetStream/push-stream-chat-docusaurus-action@main
with:
target-branch: ${{ fromJSON(env.branch_map)[github.ref] }}
env:
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}