Synchronize Docs #5
Workflow file for this run
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 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 |