diff --git a/.github/workflows/rebuild-website.yml b/.github/workflows/rebuild-website.yml deleted file mode 100644 index 2fdbc5e..0000000 --- a/.github/workflows/rebuild-website.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: rebuild-website -on: - push: - branches: - - main - paths: # only rebuild when related files change - - "**/module.yml" - - "/modules.json" - - "**/README.md" - -jobs: - rebuild-website: - name: Trigger build hook for website on Netlify - runs-on: ubuntu-latest - if: github.repository == 'blue-build/modules' - steps: - - run: curl -X POST -d {} https://api.netlify.com/build_hooks/65bf6b0dd164b64659beafd5 diff --git a/.github/workflows/trigger-rebuilds.yml b/.github/workflows/trigger-rebuilds.yml new file mode 100644 index 0000000..734adb2 --- /dev/null +++ b/.github/workflows/trigger-rebuilds.yml @@ -0,0 +1,19 @@ +name: rebuild-website +on: + push: + branches: + - main + paths: # only rebuild when related files change + - "**.md" + - "**.yml" + - "**.json" + - "**.tsp" + +jobs: + rebuild-website: + name: Trigger deploy hooks + runs-on: ubuntu-latest + if: github.repository == 'blue-build/modules' + steps: + - run: echo "website:" && curl -X POST -d {} ${{ secrets.WEBSITE_DEPLOY_HOOK }} + - run: echo "schemas:" && curl -X POST -d {} ${{ secrets.SCHEMAS_DEPLOY_HOOK }}