Merge pull request #989 from flowforge/zj-core-nodes-doc-inject #1001
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: Build Site | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "30 1 * * 5" | |
jobs: | |
build_deploy: | |
if: ${{ github.repository == 'flowforge/website' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out website repository | |
uses: actions/checkout@v3 | |
with: | |
path: 'website' | |
- name: Check out flowforge repository (to access the docs) | |
uses: actions/checkout@v3 | |
with: | |
repository: 'flowforge/flowforge' | |
ref: maintenance | |
path: 'flowforge' | |
- name: Install jq | |
run: sudo apt-get -qy install jq | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- run: npm run docs | |
working-directory: 'website' | |
- name: Commit Latest Docs | |
run: | | |
cd ./website | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add src/docs/* -A -f | |
git commit -a -m "Bot: update docs" | |
- name: Push to 'live' branch | |
uses: ad-m/github-push-action@master | |
with: | |
directory: './website' | |
branch: live | |
force: true |