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

Commit e999185

Browse files
committed
Fix appcast generating
1 parent 1753989 commit e999185

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

bin/publish_appcast

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,9 @@ cat cert/dsa_pub.pem
2828

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

31-
# remove all redundant files
32-
# find . -not -name "appcast" -not -name ".git" -maxdepth 1 -print0 | xargs -0 rm -rf --
33-
# copy appcast files to tmp folder
34-
mkdir $HOME/tmp
35-
cp -r appcast/. $HOME/tmp/
36-
rm -rf appcast/
37-
38-
echo "Publish appcast file..."
39-
# push update
40-
git fetch origin gh-pages
41-
git checkout FETCH_HEAD
42-
cp -rf $HOME/tmp/. .
31+
git clone --depth=1 --branch=gh-pages https://github.com/zhuhaow/SpechtLite.git SpechtLiteSite
32+
cp -rf appcast/. SpechtLiteSite/
33+
cd SpechtLiteSite
4334
git add .
4435
git -c user.name="Travis CI" commit -m "Publish appcast"
4536
git push --force --quiet https://$GITHUB_API_KEY@github.com/zhuhaow/SpechtLite.git gh-pages > /dev/null 2>&1

0 commit comments

Comments
 (0)