Skip to content

Commit

Permalink
Build Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Nov 12, 2024
1 parent 73a199f commit b1e5f2f
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,4 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
echo "Downloading build.zip from the latest release..."
curl -L -o build.zip https://github.com/COMSOC-Community/pabuviz-web/releases/latest/download/build.zip
# Verify if the download succeeded
if [ ! -f build.zip ]; then
echo "Error: build.zip was not downloaded. Check the release URL or network."
exit 1
fi
# Ensure the web_old and web directories exist
mkdir -p web_old
mkdir -p web
# Move existing files to backup folder only if files exist
if [ "$(ls -A web)" ]; then
echo "Moving existing files to web_old..."
rm -rf web_old/*
mv web/* web_old/
else
echo "No existing files in web to backup."
fi
# Move and unzip the new build.zip in web directory
echo "Deploying new build.zip..."
mv build.zip web/
cd web/
unzip build.zip && rm build.zip
script: ./update_web_from_release.sh

0 comments on commit b1e5f2f

Please sign in to comment.