remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remix-ide/ci/deploy_from_travis_remix-li...

27 lines
802 B

#!/bin/bash
set -e
SHA=`git rev-parse --short --verify HEAD`
4 months ago
# this gh action is used to deploy the build to the gh pages
mkdir dist/apps/remix-ide/.github
mkdir dist/apps/remix-ide/.github/workflows
cp apps/remix-ide/ci/gh-actions-deploy.yml dist/apps/remix-ide/.github/workflows/gh-actions-deploy.yml
4 months ago
cd dist/apps/remix-ide
2 years ago
git init
git checkout -b gh-pages
git config user.name "$COMMIT_AUTHOR"
git config user.email "$COMMIT_AUTHOR_EMAIL"
2 years ago
echo "# Automatic build" > README.md
echo "Built website from \`$SHA\`. See https://github.com/ethereum/remix-ide/ for details." >> README.md
echo "To use an offline copy, download \`remix-$SHA.zip\`." >> README.md
2 years ago
zip -r remix-$SHA.zip .
git add .
git commit -m "Built website from {$SHA}."
git push -f git@github.com:ethereum/remix-live.git gh-pages