Skip to content

Commit

Permalink
Enable pushing docs to production site (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli authored Aug 4, 2023
2 parents 1e1ab57 + f34b82a commit ad0d32f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docusaurus-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Publish Docusaurus to staging
name: Publish Docusaurus

on:
push:
branches:
- main
paths:
- 'docusaurus/video/docusaurus/**'
- '.github/workflows/docusaurus-deploy.yml'

jobs:
push_docusaurus:
Expand All @@ -13,14 +14,15 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node 16
- name: Setup Node 18
uses: actions/[email protected]
with:
node-version: 16
node-version: 18
- name: push
uses: GetStream/push-stream-chat-docusaurus-action@main
with:
target-branch: 'staging'
target-branch: ${{ github.ref == 'refs/heads/main' && 'main' || 'staging' }}
cli-target-branch: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }}
destination-repository-name: 'stream-video-docusaurus'
source-directory: 'docusaurus/video/docusaurus'
env:
Expand Down

0 comments on commit ad0d32f

Please sign in to comment.