Skip to content

Commit

Permalink
Fix my stupidity, also push non-manifested assets
Browse files Browse the repository at this point in the history
  • Loading branch information
BetTD committed Feb 4, 2023
1 parent 2e92cef commit cb3726c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ jobs:
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
bucket: ${{ secrets.MINIO_BUCKET }}
source_dir: './archives'
target_dir: '/preinstalls'
source_dir: './out'
target_dir: '/preinstalls'
- name: Clean up
run: rm -rf ./out
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ dist
.pnp.*
# END OF NODE GITIGNORE

archives/
out/
*.zip
16 changes: 8 additions & 8 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

oldDir=$(pwd)

function cleanup() {
rm -rf archives >/dev/null 2>&1
}

cleanup
mkdir archives
rm -rf out >/dev/null 2>&1
mkdir out

for d in $(find . -type d); do
if [ -f "$d/manifest.json" ]; then
dir_name=$(basename "$d")
echo "Processing $dir_name..."
cd "$d"
zip -r "$dir_name.zip" .
mv "$dir_name.zip" "$oldDir/archives/."
mv "$dir_name.zip" "$oldDir/out/."
cd $oldDir
echo "$dir_name completed."
echo ""
fi
done

cleanup
echo "Copying minecraft-java/core-configs"
cp -r minecraft-java/core-configs/* "out/."

echo "Copying additional-configs/pteroignore"
cp "additional-configs/pteroignore/.pteroignore" "out/."

0 comments on commit cb3726c

Please sign in to comment.