-
-
Notifications
You must be signed in to change notification settings - Fork 193
31 lines (30 loc) · 1.14 KB
/
prod-deploy.yml
File metadata and controls
31 lines (30 loc) · 1.14 KB
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
28
29
30
31
name: Deploy Notification To production 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-22.04
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- 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:prod
- name: Deploy Notification To production repository phcode.dev
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT_PHOENIX_BOT_PUBLIC_REPO_ACCESS }}
repository: phcode-dev/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 }}"}'