Skip to content

Commit

Permalink
feat: update sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverboy32 committed Sep 22, 2024
1 parent 959c93f commit bbfd821
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions post-github.sh
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
#!/bin/bash

# npm run build
npm run build



# output_dir="./build_file"
# rm -rf $output_dir
# mkdir $output_dir
# search_dir="./packages/"
output_dir="./build_file"
rm -rf $output_dir
mkdir $output_dir
search_dir="./packages/"

# for package in `ls $search_dir`; do
# package_dist="$search_dir$package/dist/";
# cp -r $package_dist $output_dir
# done
for package in `ls $search_dir`; do
package_dist="$search_dir$package/dist/";
cp -r $package_dist $output_dir
done



# git stash
# git branch -D gh-pages
# git fetch -p
# git checkout -b gh-pages origin/gh-pages
git stash
git branch -D gh-pages
git fetch -p
git checkout -b gh-pages origin/gh-pages


# for file in ./*; do
# # echo $file;
# if [[ "$file" != "./post-github.sh" &&
# "$file" != "./build_file" &&
# "$file" != "./packages" &&
# "$file" != "./node_modules"
# ]]; then
# rm -r "$file"
# fi
# done
for file in ./*; do
# echo $file;
if [[ "$file" != "./post-github.sh" &&
"$file" != "./build_file" &&
"$file" != "./packages" &&
"$file" != "./node_modules"
]]; then
rm -r "$file"
fi
done


# mv $output_dir/* ./
# rm -rf $output_dir
mv $output_dir/* ./
rm -rf $output_dir

git add .
git commit -m "feat: update blog"
Expand Down

0 comments on commit bbfd821

Please sign in to comment.