mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 22:14:54 +00:00
CI: remove doc-build from pytest workflow, instead run the docs job on PR
Docs upload will only happen on main
This commit is contained in:
1 parent
587f74ccdd
commit
0c664b365c
2 files changed
+5
-3
No files matched your search
@@ -1,8 +1,10 @@
|
||||
name: Docs Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -47,11 +49,13 @@ jobs:
|
||||
continue-on-error: false
|
||||
|
||||
- name: Upload Pages artifact
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: docs/_build
|
||||
|
||||
deploy:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
@@ -576,5 +576,3 @@ jobs:
|
||||
- name: Type-checking with mypy
|
||||
shell: bash
|
||||
run: uv run poe type-check
|
||||
- name: Make sure documentation builds
|
||||
run: uv run poe doc-build
|
||||
Reference in new issue
Block a user