Skip to content

Commit 091c062

Browse files
authored
fix: Adds code to create dist branch if it doesn't already exist. (#123)
1 parent a637c0e commit 091c062

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

post-build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ echo ">>>Running post-build.sh"
1818

1919
#!/bin/bash
2020

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
25+
fi
26+
2127
# Checkout the dist branch
2228
git checkout dist || git checkout -b dist
2329

0 commit comments

Comments
 (0)