Skip to content
Open
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
22 changes: 15 additions & 7 deletions .github/workflows/push-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,27 @@ jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- name: Checkout
- 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 Action Bot"
git config user.email "<>"
git config --global user.name "github-actions[bot]"
git config --global user.email "[email protected]"

- name: synchronize docs
run: |
mkdir temp
cd temp
git clone [email protected]:NanoForge-dev/docs.git
cp ../docs docs/cli
cp cli/docs -r docs/cli
cd docs
git add .
git commit -m "chore(cli): updating docs"
git push origin main