diff --git a/.github/workflows/netflify.yml b/.github/workflows/netflify.yml new file mode 100644 index 0000000000..47f13fef80 --- /dev/null +++ b/.github/workflows/netflify.yml @@ -0,0 +1,19 @@ +name: Netlify + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + trigger_builds: + name: Trigger netlify build preview + runs-on: "ubuntu-latest" + steps: + - name: Trigger Cast build + run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_CAST_DEV_BUILD_HOOK }} + + - name: Trigger Demo build + run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_DEMO_DEV_BUILD_HOOK }} + + - name: Trigger Gallery build + run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_GALLERY_DEV_BUILD_HOOK }} diff --git a/azure-pipelines-netlify.yml b/azure-pipelines-netlify.yml deleted file mode 100644 index 46a6782f44..0000000000 --- a/azure-pipelines-netlify.yml +++ /dev/null @@ -1,30 +0,0 @@ -# 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'