From 685192fe7f4b61e83a685618c461edd62397c3ee Mon Sep 17 00:00:00 2001 From: Ival Shamkya Date: Fri, 26 Jan 2024 12:52:22 +0800 Subject: [PATCH] chore: create preview.yaml --- .github/workflows/preview.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/preview.yaml 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 }}