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: Sync on DOM Cloud | |
'on': | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke deployment hook | |
uses: distributhor/workflow-webhook@v2 | |
env: | |
webhook_url: https://my.domcloud.co/api/githubdeploy | |
webhook_secret: ${{ secrets.WEBHOOK_SECRET }} | |
webhook_auth: ${{ secrets.WEBHOOK_AUTH }} | |
data: '{"commands":["git pull","yarn build","restart"]}' |