Skip to content
# 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\//}"}'