Merge pull request #1166 from trinnode/feat/cleanup-wave-1097-1098-10… #33
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 | |
| paths: | |
| - 'docs/**' | |
| - 'mkdocs.yml' | |
| - 'requirements.txt' | |
| - '.github/workflows/docs-deploy.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # Fetch all history for git-revision-date-localized | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Set up Rust (for cargo doc) | |
| uses: ./.github/actions/setup-rust | |
| with: | |
| cache-key: "docs-deploy" | |
| - name: Generate Rust API documentation | |
| run: | | |
| cargo doc --no-deps --document-private-items | |
| continue-on-error: true # Don't fail if Rust project has issues | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Build and deploy documentation | |
| run: | | |
| mkdocs gh-deploy --force --clean --verbose | |
| - name: Verify deployment | |
| run: | | |
| echo "Documentation deployed successfully!" | |
| echo "Site should be available at: https://m1s0g1.github.io/Stellar-K8s/" |