Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
524a2767
Unverified
Commit
524a2767
authored
Aug 28, 2018
by
Leo Arias
Committed by
GitHub
Aug 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: trigger docs update on tag (#1186)
parent
a9f910d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
.travis.yml
.travis.yml
+8
-0
trigger_docs_update
scripts/ci/trigger_docs_update
+32
-0
No files found.
.travis.yml
View file @
524a2767
...
@@ -38,6 +38,14 @@ jobs:
...
@@ -38,6 +38,14 @@ jobs:
-
stage
:
tests
-
stage
:
tests
name
:
"
static
tests"
name
:
"
static
tests"
script
:
npm run lint
script
:
npm run lint
-
stage
:
update docs
if
:
tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
addons
:
apt
:
packages
:
-
curl
script
:
-
./scripts/ci/trigger_docs_update "${TRAVIS_TAG}"
notifications
:
notifications
:
slack
:
slack
:
...
...
scripts/ci/trigger_docs_update
0 → 100755
View file @
524a2767
#!/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
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