Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
Fix appcast generating
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhaow committed Nov 21, 2016
1 parent 1753989 commit e999185
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions bin/publish_appcast
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,9 @@ cat cert/dsa_pub.pem

openssl dgst -sha1 -binary < SpechtLite.zip | openssl dgst -dss1 -verify cert/dsa_pub.pem -signature signature

# remove all redundant files
# find . -not -name "appcast" -not -name ".git" -maxdepth 1 -print0 | xargs -0 rm -rf --
# copy appcast files to tmp folder
mkdir $HOME/tmp
cp -r appcast/. $HOME/tmp/
rm -rf appcast/

echo "Publish appcast file..."
# push update
git fetch origin gh-pages
git checkout FETCH_HEAD
cp -rf $HOME/tmp/. .
git clone --depth=1 --branch=gh-pages https://github.com/zhuhaow/SpechtLite.git SpechtLiteSite
cp -rf appcast/. SpechtLiteSite/
cd SpechtLiteSite
git add .
git -c user.name="Travis CI" commit -m "Publish appcast"
git push --force --quiet https://$GITHUB_API_KEY@github.com/zhuhaow/SpechtLite.git gh-pages > /dev/null 2>&1
Expand Down

0 comments on commit e999185

Please sign in to comment.