Skip to content

Commit

Permalink
chore: docs deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmaribojoc committed Sep 18, 2024
1 parent 15cb0e4 commit eae3c0b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eae3c0b

Please sign in to comment.