generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting of docs to GitHub workflow (#722)
Co-authored-by: Hans <11695964+hupling@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
df12f67
commit 88b6bc5
Showing
2 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
name: Deploy documentation website | ||
|
||
on: | ||
# Runs on pushes targeting the `main` branch | ||
# Runs on pushes to any branch when changes are made to docs or workflow | ||
push: | ||
branches: [main] | ||
paths: | ||
- "docs/**" | ||
- ".github/workflows/deploy-docs.yml" # define the concrete paths on which a change triggers this action, e.g. backend/** | ||
- ".github/workflows/deploy-docs.yml" | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy-pages: | ||
uses: it-at-m/.github/.github/workflows/deploy-pages.yml@main | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: build_docs | ||
uses: it-at-m/.github/.github/actions/action-build-docs@main | ||
- id: deploy_docs | ||
# Only deploy documentation from the main branch to prevent unauthorized changes | ||
|
||
uses: it-at-m/.github/.github/actions/action-deploy-docs@main |
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