Skip to content

Commit 08ca3f3

Browse files
committed
tie deployment event notification from parent repo to staging
1 parent 15f3a13 commit 08ca3f3

File tree

3 files changed

+26
-38
lines changed

3 files changed

+26
-38
lines changed

.github/workflows/deplot-test.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Deploy Notification To staging.phcode.dev
22

33
on:
4-
repository_dispatch:
5-
types: [deploy-staging]
4+
push:
5+
branches: [ main ]
66

77
jobs:
88
build-tasks:
@@ -12,3 +12,25 @@ jobs:
1212
- name: Event triggered by
1313
run: |
1414
echo source: ${{github.event.client_payload.source}}, workflow: ${{github.event.client_payload.workflow}}, action_run_id: ${{github.event.client_payload.run_id}}, action_run_number: ${{github.event.client_payload.run_number}}, sha: ${{ github.event.client_payload.sha }}, github_ref: ${{ github.event.client_payload.ref }}
15+
- name: Checking Out https://github.com/phcode-dev/phoenix
16+
uses: actions/checkout@v2
17+
with:
18+
repository: phcode-dev/phoenix
19+
path: './phoenix'
20+
- name: Building phoenix release artifacts
21+
working-directory: ./phoenix
22+
run: |
23+
npm install
24+
npm run release
25+
shell: bash
26+
- name: Copying release artifacts to public folder
27+
run: |
28+
mkdir -p ./public
29+
cp -r ./phoenix/dist/. ./public
30+
shell: bash
31+
- name: Deploy Github Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
if: github.ref == 'refs/heads/main'
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./public

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The deployed site for [staging.phcode.dev](https://staging.phcode.dev).
55
This serves staging/test site of phoenix code editor
66

77

8+
Please see branch: [gh-pages](https://github.com/phcode-dev/staging.phcode.dev/tree/gh-pages) for seeing the files in the deployed site.
9+
810
## Parent repository:
911

1012
https://github.com/phcode-dev/phoenix

0 commit comments

Comments
 (0)