From 059ad708049821ed0b764e04aeea8950a3cb116c Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 30 Jan 2023 09:09:37 +0530 Subject: [PATCH 1/3] chore: create.phcode.dev site publish action --- .github/workflows/create-deploy.yml | 24 ++++++++++++++++++++++++ .github/workflows/prod-deploy.yml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/create-deploy.yml diff --git a/.github/workflows/create-deploy.yml b/.github/workflows/create-deploy.yml new file mode 100644 index 0000000000..a5a1c44aed --- /dev/null +++ b/.github/workflows/create-deploy.yml @@ -0,0 +1,24 @@ +name: Deploy Notification To authoring production create.phcode.dev +# Please note to add branch protection rules for the prod branch in your repository. +on: + push: + branches: [ create ] + +jobs: + build-tasks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Npm Install + run: | + npm install + - name: Verifying release artifact build + run: | + npm run release:prod + - name: Deploy Notification To authoring production repository create.phcode.dev + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.PAT_PHOENIX_BOT_PUBLIC_REPO_ACCESS }} + repository: phcode-dev/create.phcode.dev + event-type: deploy-production + client-payload: '{"source":"${{github.repositoryUrl}}", "workflow":"${{github.workflow}}", "run_id":"${{github.run_id}}", "run_number":"${{github.run_number}}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 844fa8dd02..600b77744f 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -1,4 +1,4 @@ -name: Deploy Notification To prodution phcode.dev +name: Deploy Notification To production phcode.dev # Please note to add branch protection rules for the prod branch in your repository. on: push: From 582111c14e572f0885f4e0dac44522a3fb77b563 Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 30 Jan 2023 09:27:59 +0530 Subject: [PATCH 2/3] chore: create.phcode.dev site publish action --- .github/workflows/create-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-deploy.yml b/.github/workflows/create-deploy.yml index a5a1c44aed..9be9a5859b 100644 --- a/.github/workflows/create-deploy.yml +++ b/.github/workflows/create-deploy.yml @@ -20,5 +20,5 @@ jobs: with: token: ${{ secrets.PAT_PHOENIX_BOT_PUBLIC_REPO_ACCESS }} repository: phcode-dev/create.phcode.dev - event-type: deploy-production + event-type: deploy-production-create client-payload: '{"source":"${{github.repositoryUrl}}", "workflow":"${{github.workflow}}", "run_id":"${{github.run_id}}", "run_number":"${{github.run_number}}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' From 674429937ce215267c7fb185cb0889bdc35864e4 Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 30 Jan 2023 09:34:23 +0530 Subject: [PATCH 3/3] chore: create.phcode.dev tracking prod branch --- .github/workflows/create-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-deploy.yml b/.github/workflows/create-deploy.yml index 9be9a5859b..c4bd773c9d 100644 --- a/.github/workflows/create-deploy.yml +++ b/.github/workflows/create-deploy.yml @@ -2,7 +2,7 @@ name: Deploy Notification To authoring production create.phcode.dev # Please note to add branch protection rules for the prod branch in your repository. on: push: - branches: [ create ] + branches: [ prod ] jobs: build-tasks: