blob: f4eeaf696ac028de71310176c97e082ee95f3d44 [file] [log] [blame]
#!/bin/sh -e
SITE_LOCATION='public_html/sling/ide/preview'
# 1. Build fresh package
mvn -q clean verify
# 2. Clean the current update site
ssh people.apache.org "rm -rf $SITE_LOCATION/*"
# 3. Upload the new update site
scp p2update/target/*.zip people.apache.org:$SITE_LOCATION
# 4. Unzip the new update site
ssh people.apache.org "cd $SITE_LOCATION && unzip -o *.zip && rm -f *.zip"