From eae3c0bf53c118f222588eb18a5869a172c2285f Mon Sep 17 00:00:00 2001 From: Matt Maribojoc Date: Wed, 18 Sep 2024 09:28:39 -0400 Subject: [PATCH] chore: docs deploy action --- .github/workflows/deploy-docs.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000..6dd10434 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,21 @@ +name: Deploy to Netlify + +on: + push: + branches: + - main + paths: + - '.github/workflows/deploy-docs.yml' + - 'docs/**/*' +jobs: + curl-job: + runs-on: ubuntu-latest + + steps: + - name: Deploy to Netlify + run: | + response=$(curl -o /dev/null -w "%{http_code}" -X POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_KEY }}?clear_cache=true) + if [ "$response" -ne 200 ]; then + echo "Failed with status $response" + exit 1 + fi