Skip to content

Merge pull request #50 from AntonPalmqvist/dev #39

Merge pull request #50 from AntonPalmqvist/dev

Merge pull request #50 from AntonPalmqvist/dev #39

name: API Deploy
on:
push:
branches:
- "dev"
- "main"
paths:
- "deploy/*.json"
jobs:
build_dev:
if: github.ref == 'refs/heads/dev'
name: Netlify Webhook - Dev
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} ${{ secrets.NETLIFY_WEBHOOK_DEV }}
build_production:
if: github.ref == 'refs/heads/main'
name: Netlify Webhook - Production
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} ${{ secrets.NETLIFY_WEBHOOK_PRODUCTION }}