Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions workflow for building and updating docs #45

Merged
merged 4 commits into from
Jul 11, 2020
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
38 changes: 38 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Update docs

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
J0B10 marked this conversation as resolved.
Show resolved Hide resolved
if: startsWith(github.repository, 'codeoverflow-org') # don't run this in forks
steps:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8.3

- uses: actions/checkout@v2

- name: Checkout docs
uses: actions/checkout@v2
with:
repository: codeoverflow-org/nodecg-io-docs
path: ../nodecg-io-docs
ssh-key: ${{ secrets.DOCS_SSH_KEY }}

- name: Build docs
run: python .scripts/build-docs.py

- name: GitHub Push
run: |
cd ../nodecg-io-docs
git config --global user.email "<>"
git config --global user.name "codeoverflow-org"
git add .
git commit --message "Update generated documentation ( codeoverflow-org/nodecg-io@${{ github.sha }})"
git push --force origin master