-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (33 loc) · 1.21 KB
/
notify-services-of-publish.yml
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
32
33
34
35
36
37
# Name is optional and if present must be used
# in the url path for badges
name: Trigger Site and CDN Build
# only run when a release has been "published"
on:
release:
types: [released, prereleased]
jobs:
dispatch:
name: Dispatch Event
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
steps:
# push dev (stage) version of site
- name: Dispatch Site Build
uses: peter-evans/repository-dispatch@v1
with:
# personal access tokens are under admin@zingsoft.com github account
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repository: zingsoftinc/zinggrid-com
event-type: new-zg-version
client-payload: '{"ref": "${{ github.ref }}", "version": "${GITHUB_REF/refs\/tags\//}"}'
# push master (live) branch of site
# - name: Dispatch CDN Build
# uses: peter-evans/repository-dispatch@v1
# with:
# # personal access tokens are under admin@zingsoft.com github account
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# repository: zingsoftinc/zinggrid-cdn
# event-type: new-zg-version
# client-payload: '{"ref": "${{ github.ref }}", "version": "${GITHUB_REF/refs\/tags\//}"}'