Skip to content

Merge pull request #2690 from GetStream/develop #699

Merge pull request #2690 from GetStream/develop

Merge pull request #2690 from GetStream/develop #699

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 }}