Skip to content

bugfix(documentation): deploy doc only if there is an update #6

bugfix(documentation): deploy doc only if there is an update

bugfix(documentation): deploy doc only if there is an update #6

Workflow file for this run

name: "Publish documentation"
on:
push:
branches:
- "features/dka/docs"
jobs:
check-changes-api-doc:
name: Check for changes in api documentation
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: dorny/paths-filter@v3
id: api-doc-change
with:
filters: |
src:
- 'api/**'
outputs:
changed: ${{ steps.api-doc-change.outputs.changed }}
check-changes-client-doc:
name: Check for changes in client documentation
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: dorny/paths-filter@v3
id: client-doc-change
with:
filters: |
src:
- 'client/**'
outputs:
changed: ${{ steps.client-doc-change.outputs.changed }}
publish-api-documentation:
name: Publish api documentation
needs: check-changes-api-doc
if: ${{steps.api-doc-change.outputs.changed == 'true'}}

Check failure on line 41 in .github/workflows/buildGithubPage.yml

View workflow run for this annotation

GitHub Actions / Publish documentation

Invalid workflow file

The workflow is not valid. .github/workflows/buildGithubPage.yml (Line: 41, Col: 9): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.api-doc-change.outputs.changed == 'true' .github/workflows/buildGithubPage.yml (Line: 64, Col: 9): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.client-doc-change.outputs.changed == 'true'
permissions:
id-token: "write"
pages: "write"
runs-on: "ubuntu-latest"
steps:
- id: "checkout"
name: "Check out Git repository"
uses: "actions/checkout@v3"
- id: "upload-documentation"
name: "Upload Pages artifact"
uses: "actions/upload-pages-artifact@v2"
with:
path: "api/"
- id: "deployment"
name: "Deploy documentation to GitHub Pages"
uses: "actions/deploy-pages@v2"
publish-client-documentation:
name: Publish client documentation
needs: check-changes-client-doc
if: ${{steps.client-doc-change.outputs.changed == 'true'}}
permissions:
id-token: "write"
pages: "write"
runs-on: "ubuntu-latest"
steps:
- id: "checkout"
name: "Check out Git repository"
uses: "actions/checkout@v3"
- id: "upload-documentation"
name: "Upload Pages artifact"
uses: "actions/upload-pages-artifact@v2"
with:
path: "client/"
- id: "deployment"
name: "Deploy documentation to GitHub Pages"
uses: "actions/deploy-pages@v2"