Skip to content

Commit

Permalink
Add linting of docs to GitHub workflow (#722)
Browse files Browse the repository at this point in the history
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
3 people authored Jan 30, 2025
1 parent df12f67 commit 88b6bc5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/deploy-docs.yml
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
9 changes: 5 additions & 4 deletions .github/workflows/maven-node-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
- app-path: refarch-frontend
- app-path: refarch-eai
- app-path: refarch-webcomponent

steps:
- uses: it-at-m/.github/.github/actions/action-checkout@main
- if: ${{hashFiles(format('./{0}/package.json', matrix.app-path))!=null}}
- if: ${{hashFiles(format('./{0}/package.json', matrix.app-path))!=null}}
id: node
uses: it-at-m/.github/.github/actions/action-npm-build@main
with:
app-path: "${{ matrix.app-path }}"
- if: ${{hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null}}
app-path: "${{ matrix.app-path }}"
- if: ${{hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null}}
id: maven
uses: it-at-m/.github/.github/actions/action-maven-build@main
with:
Expand All @@ -38,4 +39,4 @@ jobs:
image-name: "${{ matrix.app-path }}"
artifact-name: ${{join(steps.*.outputs.artifact-name)}}
registry-password: ${{ secrets.GITHUB_TOKEN }}
registry-username: ${{ github.actor }}
registry-username: ${{ github.actor }}

0 comments on commit 88b6bc5

Please sign in to comment.