Merge pull request #2068 from GetStream/develop #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |