Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/doc-build.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
name: build app-directory on documentation update

on:
push:
paths:
"documentation/**.md"

permissions:
contents: write
pages: write
id-token: write

jobs:
run-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

build-directory:
needs: run-update
name: build app-directory
uses: ./.github/workflows/update-documentation.yml
with:
branch-name: 'main'
secrets: inherit
41 changes: 41 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
name: update-documentation

on:
workflow_dispatch:
inputs:
branch-name:
type: string
required: true
default: "main"

workflow_call:
inputs:
branch-name:
required: true
type: string
secrets:
token:
required: true

permissions:
contents: write
pages: write
id-token: write

jobs:
update-main-branch:
name: dispatch for documentation
uses: clamsproject/apps/.github/workflows/jekyll-build-deploy.yml@theming
if: ${{inputs.branch-name == 'theming'}}
with:
branch-name: ${{inputs.branch-name}}
secrets: inherit

update-theming-branch:
name: dispatch for documentation
uses: clamsproject/apps/.github/workflows/jekyll-build-deploy.yml@main
if: ${{inputs.branch-name == 'main'}}
with:
branch-name: ${{inputs.branch-name}}
secrets: inherit
#more jobs