mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-11-30 20:10:18 +08:00
18 lines
443 B
YAML
18 lines
443 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- docs
|
|
workflow_call:
|
|
|
|
jobs:
|
|
launch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: |
|
|
curl -X POST -H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
|
|
https://api.github.com/repos/${{ secrets.BUILDER }}/dispatches \
|
|
-d '{"event_type":"deploy", "client_payload":{"branch": "${{ github.ref_name }}"}}'
|