Skip to content

Commit

Permalink
update website deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Aug 11, 2021
1 parent 1532a99 commit 1aacf78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tmp_dir="/tmp/reacttraining.com"

# Clone reacttraining.com repo into the tmp dir
rm -rf $tmp_dir
git clone --depth 2 --branch master "git@github.com:ReactTraining/reacttraining.com.git" $tmp_dir
git clone --depth 2 --branch main "git@github.com:remix-run/reactrouter.com.git" $tmp_dir

# Build the website into the static/react-router dir
rm -rf "$tmp_dir/static/react-router"
Expand All @@ -24,7 +24,7 @@ git commit \
--author "Travis CI <travis-ci@reacttraining.com>" \
-m "Update react-router website
https://travis-ci.com/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"

# Deploy
git push origin master
git push origin main

0 comments on commit 1aacf78

Please sign in to comment.