From 1960b385f3d2d55e0f90daaf31774a6e43c17964 Mon Sep 17 00:00:00 2001 From: Dean Cahill Date: Thu, 6 Jul 2023 15:19:27 -0400 Subject: [PATCH 1/3] jekyll-workflows --- .github/workflows/update-documentation.yml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/update-documentation.yml diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml new file mode 100644 index 0000000..1d72f6e --- /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: + USER_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 From 3134df5318b9f962d1d6a28c93176aeadaffb718 Mon Sep 17 00:00:00 2001 From: Dean Cahill Date: Thu, 6 Jul 2023 15:19:55 -0400 Subject: [PATCH 2/3] token refactor --- .github/workflows/update-documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index 1d72f6e..6b2f9f5 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -14,7 +14,7 @@ on: required: true type: string secrets: - USER_TOKEN: + token: required: true permissions: From fee73ed517656d112ac31c46a0f9df3579acc10b Mon Sep 17 00:00:00 2001 From: Dean Cahill Date: Fri, 7 Jul 2023 12:21:35 -0400 Subject: [PATCH 3/3] additional workflow for build automation --- .github/workflows/doc-build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/doc-build.yml 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