31 lines
637 B
YAML
31 lines
637 B
YAML
# https://dev.azure.com/home-assistant
|
|
|
|
trigger: none
|
|
pr: none
|
|
schedules:
|
|
- cron: "0 0 * * *"
|
|
displayName: "build preview"
|
|
branches:
|
|
include:
|
|
- dev
|
|
always: true
|
|
variables:
|
|
- group: netlify
|
|
|
|
jobs:
|
|
|
|
- job: 'Netlify_preview'
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- script: |
|
|
# Cast
|
|
curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_CAST}
|
|
|
|
# Demo
|
|
curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_DEMO}
|
|
|
|
# Gallery
|
|
curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_GALLERY}
|
|
displayName: 'Trigger netlify build preview'
|