Skip to content

Commit

Permalink
ci: ignore some builds
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 11, 2023
1 parent a9696c6 commit 935f6c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/online-playground/deploy-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# check for netlify to skip deploy
# needed because we cannot use && in netlify.toml

# exit 0 will skip the build while exit 1 will build

git diff --quiet 'HEAD^' HEAD . && git diff --quiet 'HEAD^' HEAD ../pinia
1 change: 1 addition & 0 deletions packages/online-playground/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[build]
command = "pnpm run build"
ignore = "./deploy-check.sh"
publish = "dist"

0 comments on commit 935f6c8

Please sign in to comment.