forked from square/picasso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a35c785
commit 000a728
Showing
2 changed files
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,6 @@ | |
set -ex | ||
|
||
REPO="[email protected]:square/picasso.git" | ||
GROUP_ID="com.squareup.picasso" | ||
ARTIFACT_ID="picasso" | ||
|
||
DIR=temp-clone | ||
|
||
# Delete any existing temporary website clone | ||
|
@@ -20,18 +17,12 @@ cd $DIR | |
# Checkout and track the gh-pages branch | ||
git checkout -t origin/gh-pages | ||
|
||
# Delete everything | ||
rm -rf * | ||
# Delete everything that isn't versioned (1.x, 2.x) | ||
ls | grep -E -v '^\d+\.x$' | xargs rm -rf | ||
|
||
# Copy website files from real repo | ||
cp -R ../website/* . | ||
|
||
# Download the latest javadoc | ||
curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip | ||
mkdir javadoc | ||
unzip javadoc.zip -d javadoc | ||
rm javadoc.zip | ||
|
||
# Stage all files in git and create a commit | ||
git add . | ||
git add -u | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters