From 8aecacfd996041ee24a44e566b1fb08715baa9dd Mon Sep 17 00:00:00 2001 From: Chris Clarke Date: Fri, 6 Sep 2024 11:34:27 -0700 Subject: [PATCH 1/6] feat: wip deploy-gh-pages --- .github/workflows/deploy-gh-pages.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy-gh-pages.yml diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml new file mode 100644 index 0000000..e9f6e0d --- /dev/null +++ b/.github/workflows/deploy-gh-pages.yml @@ -0,0 +1,17 @@ +################################################################################## +# Calls workflow from code repo +################################################################################## +name: Deploy - Firebase + +on: + push: + branches: + - "main" + # TODO - remove after testing + - "feat/gh-pages-deploy" + +jobs: + web_preview: + # TODO - use master branch once merged + uses: IDEMSInternational/open-app-builder/.github/workflows/reusable-deploy-web-gh-pages.yml@feat/gh-pages-deploy-action + secrets: inherit \ No newline at end of file From 42c1ec31e0f41a22aacb30762a6d47d718bdc9e0 Mon Sep 17 00:00:00 2001 From: Chris Clarke Date: Fri, 6 Sep 2024 11:34:46 -0700 Subject: [PATCH 2/6] chore: code tidying --- .github/workflows/deploy-gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index e9f6e0d..3f2714c 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -1,7 +1,7 @@ ################################################################################## # Calls workflow from code repo ################################################################################## -name: Deploy - Firebase +name: Deploy - GH Pages on: push: From 93e07626a88000965151a0e10df91915b952b84b Mon Sep 17 00:00:00 2001 From: Chris Clarke Date: Fri, 6 Sep 2024 11:43:51 -0700 Subject: [PATCH 3/6] feat: add support for workflow dispatch --- .github/workflows/deploy-gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 3f2714c..e16cc50 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -9,6 +9,7 @@ on: - "main" # TODO - remove after testing - "feat/gh-pages-deploy" + workflow_dispatch: jobs: web_preview: From fc58520f7f73bc091c681779333c5892f40bd012 Mon Sep 17 00:00:00 2001 From: chrismclarke Date: Fri, 6 Sep 2024 12:40:11 -0700 Subject: [PATCH 4/6] chore: update permissions --- .github/workflows/deploy-gh-pages.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index e16cc50..b0ccf57 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -7,12 +7,17 @@ on: push: branches: - "main" - # TODO - remove after testing + # TODO - remove after testing - "feat/gh-pages-deploy" workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write + jobs: web_preview: # TODO - use master branch once merged uses: IDEMSInternational/open-app-builder/.github/workflows/reusable-deploy-web-gh-pages.yml@feat/gh-pages-deploy-action - secrets: inherit \ No newline at end of file + secrets: inherit From 0784567c9684ef054ec2cfdd294e1046112b81f7 Mon Sep 17 00:00:00 2001 From: chrismclarke Date: Fri, 6 Sep 2024 12:42:24 -0700 Subject: [PATCH 5/6] chore: revert permissions --- .github/workflows/deploy-gh-pages.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index b0ccf57..12b9b5b 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -11,11 +11,6 @@ on: - "feat/gh-pages-deploy" workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - jobs: web_preview: # TODO - use master branch once merged From 9c82a720da8d45dd7bb08cb363261c57e7814841 Mon Sep 17 00:00:00 2001 From: chrismclarke Date: Tue, 10 Sep 2024 10:53:58 -0700 Subject: [PATCH 6/6] chore: code tidying --- .github/workflows/deploy-gh-pages.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 12b9b5b..5c2d65b 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -7,12 +7,9 @@ on: push: branches: - "main" - # TODO - remove after testing - - "feat/gh-pages-deploy" workflow_dispatch: jobs: web_preview: - # TODO - use master branch once merged - uses: IDEMSInternational/open-app-builder/.github/workflows/reusable-deploy-web-gh-pages.yml@feat/gh-pages-deploy-action + uses: IDEMSInternational/open-app-builder/.github/workflows/reusable-deploy-web-gh-pages.yml@master secrets: inherit