v1.6.0 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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\//}"}' |