Skip to content

Commit 7ab6f32

Browse files
author
Matt Maribojoc
authored
Merge pull request #97 from vuestorefront-community/chore/docs-ci
chore: docs deploy action
2 parents 14a36e0 + eae3c0b commit 7ab6f32

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to Netlify
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/deploy-docs.yml'
9+
- 'docs/**/*'
10+
jobs:
11+
curl-job:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Deploy to Netlify
16+
run: |
17+
response=$(curl -o /dev/null -w "%{http_code}" -X POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_KEY }}?clear_cache=true)
18+
if [ "$response" -ne 200 ]; then
19+
echo "Failed with status $response"
20+
exit 1
21+
fi

0 commit comments

Comments
 (0)