Skip to content

Commit

Permalink
fix(ci): Don't remove dist files on deploy.
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
joberstein committed Oct 27, 2023
1 parent 7030dea commit 61340b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ echo "Checking out '$TARGET_BRANCH'..."
git checkout "$TARGET_BRANCH" \
|| exit 1

echo "Saving dist files..."
git add dist/ \
&& git stash push dist/

echo "Removing all extra files..."
git rm -rf . \
&& rm -rf node_modules

echo "Copying files from '${SOURCE_BRANCH}' to '${TARGET_BRANCH}'"
git checkout "${SOURCE_BRANCH}" action.yml package.json package-lock.json

echo "Restoring dist files..."
git stash pop

echo "Adding files..."
git add -vA

Expand Down

0 comments on commit 61340b8

Please sign in to comment.