Skip to content
Permalink
Browse files
[website] Fix deploy push to git - use ssh (#3123)
  • Loading branch information
nicoloboschi committed Mar 17, 2022
1 parent 5dfade8 commit 7d326838325cd5e4e0bd90e968a87542993a17ba
Showing 2 changed files with 2 additions and 5 deletions.
@@ -22,9 +22,6 @@
# staging the changes, try the `staging-website.sh` script.
source scripts/common.sh

ORIGIN_REPO=$(git remote show origin | grep 'Push URL' | awk -F// '{print $NF}')
echo "ORIGIN_REPO: $ORIGIN_REPO"

(
cd $APACHE_GENERATED_DIR

@@ -33,7 +30,8 @@ echo "ORIGIN_REPO: $ORIGIN_REPO"
cd $TMP_DIR

# clone the remote repo
git clone "https://$ORIGIN_REPO" .
# Workaround: https://stackoverflow.com/questions/22147574/fatal-could-not-read-username-for-https-github-com-no-such-file-or-directo
git clone "git@github.com:apache/bookkeeper.git" .
git config user.name "Apache BookKeeper Site Updater"
git config user.email "dev@bookkeeper.apache.org"
git checkout asf-site
@@ -15,5 +15,4 @@ node $SCRIPTS_DIR/replace.js
yarn build

# inject Javadocs
$SCRIPTS_DIR/javadoc-gen.sh all
$SCRIPTS_DIR/javadoc-gen.sh latest

0 comments on commit 7d32683

Please sign in to comment.