Files
endoflife-date-release-data/.github/workflows/trigger-deploy.yml
2022-12-20 15:09:41 +05:30

23 lines
557 B
YAML

# This is triggered on every push to the main branch
# and triggers a new deploy on the eol website.
name: Deploy website
on:
# We trigger a deploy, if we've updated
# release-data in this push.
push:
branches:
- main
paths:
- 'releases/*'
jobs:
deploy:
name: Deploy Website
runs-on: ubuntu-latest
environment: production
steps:
- name: Trigger Deploy on Netlify
env :
NETLIFY_BUILD_HOOK_URL: '${{secrets.NETLIFY_BUILD_HOOK_URL}}'
run:
curl -X POST -d {} "$NETLIFY_BUILD_HOOK_URL"