Skip to content

Commit ed247b1

Browse files
authored
chore: create.phcode.dev site publish action (#956)
* chore: create.phcode.dev site publish action
1 parent 936e97a commit ed247b1

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy Notification To authoring production create.phcode.dev
2+
# Please note to add branch protection rules for the prod branch in your repository.
3+
on:
4+
push:
5+
branches: [ prod ]
6+
7+
jobs:
8+
build-tasks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Npm Install
13+
run: |
14+
npm install
15+
- name: Verifying release artifact build
16+
run: |
17+
npm run release:prod
18+
- name: Deploy Notification To authoring production repository create.phcode.dev
19+
uses: peter-evans/repository-dispatch@v2
20+
with:
21+
token: ${{ secrets.PAT_PHOENIX_BOT_PUBLIC_REPO_ACCESS }}
22+
repository: phcode-dev/create.phcode.dev
23+
event-type: deploy-production-create
24+
client-payload: '{"source":"${{github.repositoryUrl}}", "workflow":"${{github.workflow}}", "run_id":"${{github.run_id}}", "run_number":"${{github.run_number}}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

.github/workflows/prod-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Notification To prodution phcode.dev
1+
name: Deploy Notification To production phcode.dev
22
# Please note to add branch protection rules for the prod branch in your repository.
33
on:
44
push:

0 commit comments

Comments
 (0)