diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml new file mode 100644 index 0000000..d074f00 --- /dev/null +++ b/.github/workflows/doc-build.yml @@ -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 diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml new file mode 100644 index 0000000..6b2f9f5 --- /dev/null +++ b/.github/workflows/update-documentation.yml @@ -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