mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update scripts for site
This commit is contained in:
@@ -12,7 +12,7 @@ function init {
|
||||
|
||||
../clone/clone.sh --repository="driftyco/ionic-site" \
|
||||
--directory="$SITE_DIR" \
|
||||
--branch="gh-pages"
|
||||
--branch="master"
|
||||
}
|
||||
|
||||
function run {
|
||||
@@ -28,9 +28,10 @@ function run {
|
||||
$(replaceInFile "_config.yml" "latest_version:.*$" "latest_version: $VERSION \"$CODENAME\"")
|
||||
$(replaceInFile "_config.yml" "latest_release_date:.*$" "latest_release_date: $DATE")
|
||||
|
||||
git add -A
|
||||
git commit -am "release: $VERSION"
|
||||
git push -q origin master
|
||||
# git add -A
|
||||
# git commit -am "release: $VERSION"
|
||||
# git push -q origin master
|
||||
./deploy.sh
|
||||
|
||||
echo "-- Published ionic-site config v$VERSION successfully!"
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ function init {
|
||||
|
||||
../clone/clone.sh --repository="driftyco/ionic-site" \
|
||||
--directory="$SITE_DIR" \
|
||||
--branch="gh-pages"
|
||||
--branch="master"
|
||||
}
|
||||
|
||||
# Example: ./scripts/site/publish.sh --action=docs --version-name=nightly
|
||||
@@ -33,9 +33,10 @@ function run {
|
||||
if [[ "$CHANGES" == "" ]]; then
|
||||
echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
|
||||
else
|
||||
git add -A
|
||||
git commit -am "docs: update for $VERSION"
|
||||
git push -q origin gh-pages
|
||||
# git add -A
|
||||
# git commit -am "docs: update for $VERSION"
|
||||
# git push -q origin gh-pages
|
||||
./deploy.sh
|
||||
|
||||
echo "-- Updated docs for $VERSION_NAME succesfully!"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user