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 8, 2024
2 parents 6bcb9ba + 5725554 commit fcf1019
Show file tree
Hide file tree
Showing 3 changed files with 2,338 additions and 2,905 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,3 @@ jobs:
cd ${{ secrets.SERVER_PATH }}
git fetch --all
git pull
# Create a random variable for unique clone directory
variable=cache$RANDOM
echo "Cloning repository to: clone-${variable}"
git clone https://github.com/SalamLang/Salam clone-${variable}
cd clone-${variable}
cd src
# Run the WebAssembly build script
echo "Running build-webassembly.sh..."
bash build-webassembly.sh
# 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 ../../
else
echo "salam-wa.wasm or salam-wa.js not found. Skipping."
fi
# Cleanup cloned directory
cd ../..
rm -rf clone-${variable}
echo "Cleanup completed: clone-${variable} removed."
# Add, commit, and push changes
cd ${{ secrets.SERVER_PATH }}
git add salam-wa.wasm salam-wa.js
git commit -m "Automated commit of WebAssembly build artifacts"
git push
Loading

0 comments on commit fcf1019

Please sign in to comment.