Docs / Publish docs.scylladb.com/manual #23
This file contains 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 docs.scylladb.com/manual" | |
env: | |
FLAG: 'manual' | |
on: | |
schedule: | |
# Run daily at 00:00 UTC | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.repository.default_branch }} | |
persist-credentials: false | |
fetch-depth: 0 | |
submodules: true | |
- name: Fetch submodules latest version | |
run: | | |
git submodule sync | |
git submodule update --init --remote | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Set up env | |
run: make -C submodules/scylladb/docs FLAG="${{ env.FLAG }}" setupenv | |
- name: Build docs | |
run: make -C submodules/scylladb/docs FLAG="${{ env.FLAG }}" multiversion | |
- name: Build redirects | |
run: make -C submodules/scylladb/docs FLAG="${{ env.FLAG }}" redirects | |
- name: Deploy docs to GitHub Pages | |
run: ./scripts/deploy_manual.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |