docs: rename release/4.x branch references to release/4.0.x #20
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: Deploy Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: # Allows manual trigger from GitHub UI | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout docs repo | |
| uses: actions/checkout@v4 | |
| - name: Checkout target repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: poweradmin/poweradmin.github.io | |
| path: poweradmin.github.io | |
| token: ${{ secrets.DEPLOY_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: pip install mkdocs | |
| - name: Build and deploy | |
| run: | | |
| cd poweradmin.github.io | |
| mkdocs gh-deploy --verbose --config-file ../mkdocs.yml --remote-branch master --force |