diff --git a/.github/workflows/create-deploy.yml b/.github/workflows/create-deploy.yml new file mode 100644 index 0000000000..c4bd773c9d --- /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: [ prod ] + +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-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 }}"}' 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: