docs: setup action to push all docs to docs repo (#29) #1
This file contains hidden or 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: synchronize-docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| synchronize: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: setup git | |
| run: | | |
| git config user.name "Github Action Bot" | |
| git config user.email "<>" | |
| - name: synchronize docs | |
| run: | | |
| mkdir temp | |
| cd temp | |
| git clone git@github.com:NanoForge-dev/docs.git | |
| cp ../docs docs/cli | |
| cd docs | |
| git push origin main |