mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-22 18:25:46 +00:00
Docs workflow: Set working directory after checkout
This commit is contained in:
parent
561e9379c1
commit
91fb9c3446
1 changed files with 4 additions and 4 deletions
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
|
@ -27,10 +27,6 @@ jobs:
|
|||
build-docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: docs
|
||||
|
||||
steps:
|
||||
- name: Print inputs
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
|
@ -50,14 +46,17 @@ jobs:
|
|||
cache: 'pip'
|
||||
|
||||
- run: pip install -r requirements.txt
|
||||
working-directory: docs
|
||||
|
||||
- name: Build Docs and Capture Warnings
|
||||
id: build_docs
|
||||
working-directory: docs
|
||||
run: |
|
||||
mkdocs build 2>&1 | tee mkdocs-output.log
|
||||
|
||||
- name: Annotate Warnings and Errors
|
||||
if: always() && steps.build_docs.outcome != 'skipped'
|
||||
working-directory: docs
|
||||
run: |
|
||||
warnings=$(grep -i 'WARNING' mkdocs-output.log || true)
|
||||
errors=$(grep -i 'ERROR' mkdocs-output.log || true)
|
||||
|
@ -81,4 +80,5 @@ jobs:
|
|||
|
||||
- name: Deploy to GitHub Pages
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true'
|
||||
working-directory: docs
|
||||
run: mkdocs gh-deploy --force
|
||||
|
|
Loading…
Reference in a new issue