diff --git a/scripts/release/copy-docs.sh b/scripts/release/copy-docs.sh deleted file mode 100755 index a18c5acaddcc..000000000000 --- a/scripts/release/copy-docs.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Copy docs to material docs site - -# Run this script after `gulp docs` -# Need to specify destination folder -# Use OVERVIEW.html when possible. If there's no OVERVIEW file exists, use README.html - -usage='Usage: copy-docs.sh $destinationFolder' -if [ $# -ne 1 ]; then - echo "Missing destination folder. $usage" - exit -fi - -originFolder=./dist/docs/ -destFolder=$1 - -if [ ! -w $destFolder ]; then - echo "Invalid destination folder. $usage" - exit -fi - -for file in $originFolder* -do - name=${file#$originFolder} - overviewFile=$originFolder$name/$name.html - readmeFile=$originFolder$name/README.html - destFile=$destFolder/$name.html - if [ -f $overviewFile ]; then - cp $overviewFile $destFile - echo "Copied $overviewFile to $destFile" - elif [ -f $readmeFile ]; then - cp $readmeFile $destFile - echo "Copied $readmeFile to $destFile" - fi -done diff --git a/scripts/release/enact-release.sh b/scripts/release/enact-release.sh deleted file mode 100755 index f4dbbc2b25b7..000000000000 --- a/scripts/release/enact-release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# Run this script after running `stage-release.sh` to publish the packages staged to deploy/ -# Optionally uses the first argument as the tag for the release (such as "next"). -# This script should be run from the root of the material2 repo. - - -# `npm whoami` errors and dies if you're not logged in, -# so we redirect the stderr output to /dev/null since we don't care. -NPM_USER=$(npm whoami 2> /dev/null) - -if [ "${NPM_USER}" != "angular2-material" ]; then - echo "You must be logged in as 'angular2-material' to publish. Use 'npm login'." - exit -fi - -NPM_TAG="latest" -if [ "$1" ] ; then - NPM_TAG=${1} -fi - -set -ex - -for package in ./deploy/* ; do - npm publish --access public ${package} --tag ${NPM_TAG} -done - -# Always log out of npm when publish is complete. -npm logout