-
Notifications
You must be signed in to change notification settings - Fork 12.4k
ci: trigger docs update on tag #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
come-maiz
merged 16 commits into
OpenZeppelin:master
from
come-maiz:feature/trigger-docs-update
Aug 28, 2018
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0f1286e
tests: use stages for the travis execution
b46e610
add comments as suggested by @nventuro
825c5aa
move the unit tests first, as suggested by @frangio
5354379
make stages clearer as suggested by @nventuro
bc4a09c
Merge branch 'master' into bug/694/travis-stages
62b6b4d
tests: use stages for the travis execution
49005b8
add comments as suggested by @nventuro
91b16b2
move the unit tests first, as suggested by @frangio
046eb0c
make stages clearer as suggested by @nventuro
114a16c
update the stage names as suggested by @frangio
8b47d98
update the stage names as suggested by @frangio
51c7f4d
ci: trigger docs update on tag
6d9d966
Merge branch 'master' into feature/trigger-docs-update
ddb3ae9
mention that versions should be tags
54df5f6
Remove extra quotes
6a6d008
Fix merge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Trigger the job that will update the documentation website. | ||
| # Argument: | ||
| # version: the version of the new release. This should be a tag in the | ||
| # https://github.com/OpenZeppelin/openzeppelin-solidity repository. | ||
|
|
||
| set -ev | ||
|
|
||
| if [ "$#" -lt 1 ]; then | ||
| echo "Usage: $0 <version>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| readonly VERSION="$1" | ||
|
|
||
| readonly BODY="{ | ||
| \"request\": { | ||
| \"branch\": \"master\", | ||
| \"config\": { | ||
| \"env\": [\"VERSION=${VERSION}\"] | ||
| } | ||
| } | ||
| }" | ||
|
|
||
| curl -s -X POST \ | ||
| -H "Content-Type: application/json" \ | ||
| -H "Accept: application/json" \ | ||
| -H "Travis-API-Version: 3" \ | ||
| -H "Authorization: token ${DOCS_TRAVIS_API_TOKEN}" \ | ||
| -d "${BODY}" \ | ||
| https://api.travis-ci.com/repo/OpenZeppelin%2Fopenzeppelin-docs/requests | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know about this keyword in bash, cool!