bugfix(documentation): deploy doc only if there is an update #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
src: ${{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: | ||
src: ${{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 GitHub Actions / Publish documentationInvalid workflow file
|
||
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" |