Skip to content

Commit

Permalink
update: deploy problems
Browse files Browse the repository at this point in the history
  • Loading branch information
1834423612 committed Jun 3, 2024
1 parent bce0b59 commit 3095d25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ jobs:
echo "Fetching all branches"
git fetch origin
echo "Checking if webpage branch exists"
echo "Checking out webpage branch"
if git show-ref --verify --quiet refs/heads/webpage; then
echo "webpage branch exists, checking out"
git checkout webpage
else
echo "webpage branch does not exist, creating new branch"
git checkout -b webpage
git checkout --orphan webpage
fi
echo "Cleaning old files"
git rm -rf .
echo "Copying build files to webpage branch"
cp -r temp-deploy/* .
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ logs

# Git
.git
.gitignore
.gitattributes
.gitmodules
.gitkeep

# Package manager
package-lock.json
yarn.lock
pnpm-lock.yaml

# deployment
temp-deploy

0 comments on commit 3095d25

Please sign in to comment.