Skip to content

Merge pull request #2068 from GetStream/develop #142

Merge pull request #2068 from GetStream/develop

Merge pull request #2068 from GetStream/develop #142

Workflow file for this run

name: docusaurus
on:
push:
branches:
- master
- develop
paths:
- docusaurus/**
- .github/workflows/docusaurus.yml
env:
branch_map: '{"refs/heads/master": "production", "refs/heads/develop": "staging"}'
jobs:
push_docusaurus:
runs-on: ubuntu-latest
outputs:
target-version: $${{steps.target-version.outputs}}
steps:
- name: Pull stream-chat-react
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: πŸ”¨ Install Dependencies
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
- name: Merge docs stream-chat-css
run: bash scripts/merge-stream-chat-css-docs.sh node_modules/@stream-io/stream-chat-css/docs
- 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 }}