mirror of
https://github.com/varkor/quiver.git
synced 2024-09-11 05:46:13 +03:00
Add a cleanup command to the Makefile
This commit is contained in:
parent
f0e3746f4b
commit
d63b5bad03
8
Makefile
8
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: all gh-pages
|
||||
.PHONY: all gh-pages cleanup
|
||||
|
||||
# Ensure `cd` works properly by forcing everything to be executed in a single shell.
|
||||
.ONESHELL:
|
||||
@ -102,3 +102,9 @@ gh-pages:
|
||||
git checkout $$CURRENT
|
||||
# Delete the temporary `squashed` branch.
|
||||
git branch -D squashed
|
||||
|
||||
# Clean up the effects of the gh-pages upload, if it did not successfully terminate.
|
||||
cleanup:
|
||||
git checkout master
|
||||
git worktree remove ../quiver-worktree -f
|
||||
git branch -D squashed
|
||||
|
Loading…
Reference in New Issue
Block a user