docs: treat README.rst same way as README.md #8
  
    
      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: "Docs / Publish" | |
| # For more information, | |
| # see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows | |
| on: | |
| push: | |
| branches: | |
| - scylla-4.x | |
| - 'scylla-**' | |
| paths: | |
| - 'docs/**' | |
| - 'faq/**' | |
| - 'manual/**' | |
| - 'changelog/**' | |
| - 'upgrade_guide/**' | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: single | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Set up JDK 8.0 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| - name: Set up env | |
| run: make -C docs setupenv | |
| - name: Build redirects | |
| run: make -C docs redirects | |
| - name: Build docs | |
| run: make -C docs multiversion | |
| - name: Deploy docs to GitHub Pages | |
| run: ./docs/_utils/deploy.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |