To automatically notify this Dashboard when you deploy or release,
add the following step in your GitHub Actions workflows:
- name: Notify Release Dashboard
if: success()
run: |
curl -X POST "${{ secrets.RELEASE_DASHBOARD_URL }}/api/releases" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.RELEASE_DASHBOARD_API_KEY }}" \
-d '{
"repo": "${{ github.event.repository.name }}",
"env": "${{ inputs.environment || '\''development'\'' }}",
"version": "${{ steps.target.outputs.release-version || github.sha }}",
"commit": "${{ github.sha }}",
"commitUrl": "${{ github.event.repository.html_url }}/commit/${{ github.sha }}",
"author": "${{ github.actor }}",
"message": ${{ toJson(github.event.head_commit.message || '\''Manual release trigger'\'') }},
"timestamp": "${{ github.event.head_commit.timestamp || '' }}"
}'
Required Step: Configure
RELEASE_DASHBOARD_URL (this app's Cloudflare URL) and
RELEASE_DASHBOARD_API_KEY (the API Token configured
as the API_KEY environment variable in your
Cloudflare Pages panel) as secrets in your repository or
organization.