-
-
Notifications
You must be signed in to change notification settings - Fork 193
27 lines (25 loc) · 960 Bytes
/
dev-deploy.yml
File metadata and controls
27 lines (25 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deploy Notification To dev.phcode.dev
on:
push:
branches: [ main ]
jobs:
build-tasks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Npm Install
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:dev
- name: Deploy Notification To dev.phcode.dev repository
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT_PHOENIX_BOT_PUBLIC_REPO_ACCESS }}
repository: phcode-dev/dev.phcode.dev
event-type: deploy-dev
client-payload: '{"source":"${{github.repositoryUrl}}", "workflow":"${{github.workflow}}", "run_id":"${{github.run_id}}", "run_number":"${{github.run_number}}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'