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
bed1e27e
Commit
bed1e27e
authored
Sep 01, 2016
by
Alex Beregszaszi
Committed by
GitHub
Sep 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #186 from Denton-L/fix-deploy
Use short form commit hash in the gh-pages build
parents
47c4b416
19eb2a98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
deploy_from_travis.sh
ci/deploy_from_travis.sh
+7
-5
No files found.
ci/deploy_from_travis.sh
View file @
bed1e27e
...
@@ -2,18 +2,20 @@
...
@@ -2,18 +2,20 @@
set
-e
set
-e
SHA
=
`
git rev-parse
--short
--verify
HEAD
`
git config user.name
"
$COMMIT_AUTHOR
"
git config user.name
"
$COMMIT_AUTHOR
"
git config user.email
"
$COMMIT_AUTHOR_EMAIL
"
git config user.email
"
$COMMIT_AUTHOR_EMAIL
"
git checkout
--orphan
gh-pages
git checkout
--orphan
gh-pages
git
rm
--cached
-r
.
git
rm
--cached
-r
.
echo
"# Automatic build"
>
README.md
echo
"# Automatic build"
>
README.md
echo
"Built website from
{
$TRAVIS_COMMIT
}
. See https://github.com/ethereum/browser-solidity/ for details."
>>
README.md
echo
"Built website from
\`
$SHA
\`
. See https://github.com/ethereum/browser-solidity/ for details."
>>
README.md
echo
"To use an offline copy, download
browser-solidity-
$TRAVIS_COMMIT
.zip
."
>>
README.md
echo
"To use an offline copy, download
\`
browser-solidity-
$SHA
.zip
\`
."
>>
README.md
# ZIP the whole directory
# ZIP the whole directory
zip
-r
browser-solidity-
$
TRAVIS_COMMIT
.zip
$FILES_TO_PACKAGE
zip
-r
browser-solidity-
$
SHA
.zip
$FILES_TO_PACKAGE
# -f is needed because "build" is part of .gitignore
# -f is needed because "build" is part of .gitignore
git add
-f
$FILES_TO_PACKAGE
browser-solidity-
$
TRAVIS_COMMIT
.zip
git add
-f
$FILES_TO_PACKAGE
browser-solidity-
$
SHA
.zip
git commit
-m
"Built website from {
$
TRAVIS_COMMIT
}."
git commit
-m
"Built website from {
$
SHA
}."
ENCRYPTED_KEY_VAR
=
"encrypted_
${
ENCRYPTION_LABEL
}
_key"
ENCRYPTED_KEY_VAR
=
"encrypted_
${
ENCRYPTION_LABEL
}
_key"
ENCRYPTED_IV_VAR
=
"encrypted_
${
ENCRYPTION_LABEL
}
_iv"
ENCRYPTED_IV_VAR
=
"encrypted_
${
ENCRYPTION_LABEL
}
_iv"
...
...
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