feat: rebuild website & schemas on push to main #234
This commit is contained in:
parent
6b810ca37b
commit
ab73ad0a51
2 changed files with 19 additions and 17 deletions
17
.github/workflows/rebuild-website.yml
vendored
17
.github/workflows/rebuild-website.yml
vendored
|
|
@ -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
|
|
||||||
19
.github/workflows/trigger-rebuilds.yml
vendored
Normal file
19
.github/workflows/trigger-rebuilds.yml
vendored
Normal file
|
|
@ -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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue