We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8297c8 commit 65ce215Copy full SHA for 65ce215
post-build.sh
@@ -20,14 +20,13 @@ echo ">>>Running post-build.sh"
20
21
# Create dist branch if it doesn't exist already
22
if ! git show-ref --verify --quiet refs/heads/dist; then
23
- # Create the dist branch if it doesn't exist
24
- git branch dist
+ # Delete the dist branch locally
+ git branch -D dist
25
+ # Delete the dist branch remotely
26
+ git push origin --delete dist
27
fi
28
-git pull origin dist || true
-
29
-# Checkout the dist branch
30
-git checkout dist || git checkout -b dist
+git checkout -b dist
31
32
# Add and commit the changes to the dist folder
33
git add dist
0 commit comments