diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml new file mode 100644 index 0000000..793a14a --- /dev/null +++ b/.github/workflows/preview.yaml @@ -0,0 +1,16 @@ +name: Netlify Preview Deployment + +on: + pull_request: + branches: + - main + +jobs: + Preview: + runs-on: ubuntu-latest + environment: Preview + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: "Deployed preview site" + run: curl -X POST -d {} ${{ secrets.NETLIFY_PREVIEW_BUILD_HOOK }} diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml new file mode 100644 index 0000000..48168b8 --- /dev/null +++ b/.github/workflows/production.yaml @@ -0,0 +1,16 @@ +name: Netlify Production Deployment + +on: + push: + branches: + - main + +jobs: + Production: + runs-on: ubuntu-latest + environment: Production + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: "Deployed site" + run: curl -X POST -d {} ${{ secrets.NETLIFY_BUILD_HOOK }}