Skip to content

Synchronize Docs

Synchronize Docs #5

Workflow file for this run

name: synchronize-docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- name: Checkout cli
uses: actions/checkout@v5
with:
path: cli
- name: Checkout docs
uses: actions/checkout@v5
with:
path: docs
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}
- name: setup git
run: |
git config user.name "github-actions[bot]"
git config user.email "username@users.noreply.github.com"
- name: synchronize docs
run: |
cp cli/docs docs/cli
cd docs
git add .
git commit -m "chore(cli): updating docs"
git push origin main