We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af9b89 commit 21dc212Copy full SHA for 21dc212
Makefile
@@ -107,8 +107,9 @@ publish-version: release-commit release-tag
107
publish-finished: clean
108
109
pre-publish: clean .branch .version deps-project tests-ci build
110
-
111
-publish: pre-publish publish-version publish-finished
+check-working-tree:
+ @sh ./scripts/repo_status
112
+publish: check-working-tree pre-publish publish-version publish-finished
113
114
init-docs-repo:
115
@mkdir _book
scripts/repo_status
@@ -0,0 +1,11 @@
1
+#!/bin/bash
2
+
3
+if [ ! -z "`git status -s`" ]; then
4
+ echo "Working tree is not clean"
5
+ git status -s
6
+ read -p "Proceed? [Y/n] " OK
7
+ if [[ "$OK" -eq "n" || "$OK" -eq "N" || -z "$OK" ]]; then
8
+ echo "Stopping publish"
9
+ exit 1
10
+ fi
11
+fi
0 commit comments