mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-22 23: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:
|
build-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: docs
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Print inputs
|
- name: Print inputs
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
@ -50,14 +46,17 @@ jobs:
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- run: pip install -r requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
|
working-directory: docs
|
||||||
|
|
||||||
- name: Build Docs and Capture Warnings
|
- name: Build Docs and Capture Warnings
|
||||||
id: build_docs
|
id: build_docs
|
||||||
|
working-directory: docs
|
||||||
run: |
|
run: |
|
||||||
mkdocs build 2>&1 | tee mkdocs-output.log
|
mkdocs build 2>&1 | tee mkdocs-output.log
|
||||||
|
|
||||||
- name: Annotate Warnings and Errors
|
- name: Annotate Warnings and Errors
|
||||||
if: always() && steps.build_docs.outcome != 'skipped'
|
if: always() && steps.build_docs.outcome != 'skipped'
|
||||||
|
working-directory: docs
|
||||||
run: |
|
run: |
|
||||||
warnings=$(grep -i 'WARNING' mkdocs-output.log || true)
|
warnings=$(grep -i 'WARNING' mkdocs-output.log || true)
|
||||||
errors=$(grep -i 'ERROR' mkdocs-output.log || true)
|
errors=$(grep -i 'ERROR' mkdocs-output.log || true)
|
||||||
|
@ -81,4 +80,5 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true'
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true'
|
||||||
|
working-directory: docs
|
||||||
run: mkdocs gh-deploy --force
|
run: mkdocs gh-deploy --force
|
||||||
|
|
Loading…
Reference in a new issue