Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
3ea31b98
Commit
3ea31b98
authored
Oct 27, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy remix-beta
parent
d901024a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
+62
-0
config.yml
.circleci/config.yml
+38
-0
deploy_from_travis_remix-beta.sh
apps/remix-ide/ci/deploy_from_travis_remix-beta.sh
+24
-0
No files found.
.circleci/config.yml
View file @
3ea31b98
...
...
@@ -246,6 +246,36 @@ jobs:
./apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh;
fi
deploy-remix-beta
:
docker
:
# specify the version you desire here
-
image
:
circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
resource_class
:
xlarge
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image
:
circleci/mongo:3.4.4
environment
:
-
COMMIT_AUTHOR_EMAIL
:
"
yann@ethereum.org"
-
COMMIT_AUTHOR
:
"
Circle
CI"
-
FILES_TO_PACKAGE
:
"
dist/apps/remix-ide/assets
dist/apps/remix-ide/index.html
dist/apps/remix-ide/main.js
dist/apps/remix-ide/polyfills.js
dist/apps/remix-ide/runtime.js
dist/apps/remix-ide/vendor.js
dist/apps/remix-ide/favicon.ico"
working_directory
:
~/remix-project
steps
:
-
checkout
-
run
:
npm install
-
run
:
npm run lint
-
run
:
npm run build:libs
-
run
:
npm run downloadsolc_root
-
run
:
npm run build
-
run
:
name
:
Deploy
command
:
|
if [ "${CIRCLE_BRANCH}" == "remix_beta" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-beta.sh;
fi
workflows
:
version
:
2
build_all
:
...
...
@@ -281,3 +311,11 @@ workflows:
filters
:
branches
:
only
:
master
-
deploy-remix-beta
:
requires
:
-
remix-ide-chrome
-
remix-ide-firefox
-
remix-ide-run-deploy
filters
:
branches
:
only
:
remix_beta
apps/remix-ide/ci/deploy_from_travis_remix-beta.sh
0 → 100755
View file @
3ea31b98
#!/bin/bash
set
-e
SHA
=
`
git rev-parse
--short
--verify
HEAD
`
git config user.name
"
$COMMIT_AUTHOR
"
git config user.email
"
$COMMIT_AUTHOR_EMAIL
"
git checkout
--orphan
gh-pages
git
rm
--cached
-r
-f
.
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
cp
-r
$FILES_TO_PACKAGE
"./"
rm
-rf
dist
ls
FILES_TO_DEPLOY
=
"assets index.html main.js polyfills.js runtime.js vendor.js favicon.ico"
# ZIP the whole directory
zip
-r
remix-
$SHA
.zip
$FILES_TO_DEPLOY
# -f is needed because "build" is part of .gitignore
git add
-f
$FILES_TO_DEPLOY
remix-
$SHA
.zip
git commit
-m
"Built website from {
$SHA
}."
git push
-f
git@github.com:ethereum/remix-live-beta.git gh-pages
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment