docs: add the 4.2.6 patch release entries #161
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 | |
| permissions: | |
| contents: read | |
| # Deploys force-push to the published site, so queue them rather than | |
| # running two at once. Never cancel a deploy that is already pushing. | |
| concurrency: | |
| group: deploy-docs | |
| cancel-in-progress: false | |
| jobs: | |
| # Pushes land on main directly, so the lint in validate.yml never sees them. | |
| # Gate the deploy on it here instead. | |
| lint: | |
| name: Markdown | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| # A code fence that is not indented by four spaces renders as a sibling of | |
| # the list instead of inside the item it belongs to. | |
| - name: Check fences inside ordered lists | |
| run: | | |
| # Capture first: the exit status of a pipeline is tr's, which is always 0. | |
| hits=$(grep -rPzoH '(?m)^\d+\.[^\n]*\n\n```' docs --include='*.md' | tr '\0' '\n' || true) | |
| if [ -n "$hits" ]; then | |
| echo "$hits" | |
| echo "::error::Indent these fences by four spaces so they stay inside the list item." | |
| exit 1 | |
| fi | |
| - name: markdownlint | |
| uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0 | |
| with: | |
| globs: 'docs/**/*.md' | |
| deploy: | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout docs repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Checkout target repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| repository: poweradmin/poweradmin.github.io | |
| path: poweradmin.github.io | |
| token: ${{ secrets.DEPLOY_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: '3.13' | |
| cache: pip | |
| cache-dependency-path: requirements.txt | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Build and deploy | |
| run: | | |
| cd poweradmin.github.io | |
| mkdocs gh-deploy --strict --verbose --config-file ../mkdocs.yml --remote-branch master --force |