Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 7, 2024
2 parents 0473b4b + 20d8357 commit b37b10f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
echo "Cloning repository to: clone-${variable}"
git clone https://github.com/SalamLang/Salam-Editor clone-${variable}
cd clone-${variable}
cd src
# Run the WebAssembly build script
echo "Running build-webassembly.sh..."
Expand All @@ -35,13 +36,13 @@ jobs:
# Check if the WebAssembly files were built and copy them
if [ -f "salam-wa.wasm" ] && [ -f "salam-wa.js" ]; then
echo "Copying salam-wa.wasm and salam-wa.js to the parent directory."
cp salam-wa.wasm ../
cp salam-wa.js ../
cp salam-wa.wasm ../../
cp salam-wa.js ../../
else
echo "salam-wa.wasm or salam-wa.js not found. Skipping."
fi
# Cleanup cloned directory
cd ..
cd ../..
rm -rf clone-${variable}
echo "Cleanup completed: clone-${variable} removed."

0 comments on commit b37b10f

Please sign in to comment.