Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Update docs

on:
push:
branches: [ master ]
branches:
- master
- "releases/**"

jobs:
build:
Expand All @@ -21,9 +23,10 @@ jobs:
- name: Checkout docs
uses: actions/checkout@v2
with:
repository: codeoverflow-org/nodecg-io-docs
repository: codeoverflow-org/nodecg-io-docs
path: docs
ssh-key: ${{ secrets.DOCS_SSH_KEY }}
ref: ${{ github.event.push.ref }}

- name: Build docs
run: python .scripts/build-docs.py
Expand All @@ -34,5 +37,5 @@ jobs:
git config --global user.email "<>"
git config --global user.name "codeoverflow-org"
git add .
git diff-index --quiet HEAD || git commit --message "Update generated documentation ( codeoverflow-org/nodecg-io@${{ github.sha }})"
git push origin master
git diff-index --quiet HEAD || git commit --message "Update generated documentation (codeoverflow-org/nodecg-io@${{ github.sha }})"
git push origin "${GITHUB_REF#refs/heads/}"