Rebuild Landing Page (production) #1811
This file contains hidden or 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: Rebuild Landing Page (production) | |
| # data from this repo is also fetched by the landing page (https://github.com/hyperobjekt/eviction-lab) | |
| # when data updates, hit netlify build hook to rebuild corresponding deploy | |
| # (https://app.netlify.com/sites/eviction-lab-site/configuration/deploys#build-hooks) | |
| on: | |
| push: | |
| branches: | |
| - production | |
| # scheduled deploy doesn't trigger a "push" event, so we need to listen for it explicitly | |
| workflow_run: | |
| workflows: ["Scheduled Deploy to Production"] | |
| types: | |
| - completed | |
| jobs: | |
| redeploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Deploy | |
| run: | | |
| curl -X POST -d {} https://api.netlify.com/build_hooks/674e5ce034bb7aa26a43988a | |
| echo "Deploy production branch. Details:" | |
| echo "ref: $GITHUB_REF, commit: $GITHUB_SHA, event: $GITHUB_EVENT_NAME, actor: $GITHUB_ACTOR" |