Skip to content

add separate publish workflow that runs on releases #1

add separate publish workflow that runs on releases

add separate publish workflow that runs on releases #1

name: Test sphinx docs build

Check failure on line 1 in .github/workflows/test_docs_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_docs_build.yml

Invalid workflow file

(Line: 37, Col: 1): Unexpected value 'publish'
on:
push:
branches:
- main
pull_request:
branches:
- '**'
workflow_dispatch: {}
jobs:
test:
name: Test sphinx docs
runs-on: ubuntu-latest
env:
UV_FROZEN: 1
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: extractions/setup-just@v3
with:
just-version: '1.40.0'
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version: "0.11.3"
- name: Run the docs build
run: |
cd zixy-py/docs && just build-strict
publish:
name: Publish docs.
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: ${{github.event_name == 'push' }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Deploy to GitHub Pages.
id: deployment
uses: actions/deploy-pages@v5