mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-24 11:19:49 +00:00
Publish simple HTML examples
This commit is contained in:
parent
82f1b5a135
commit
09986d4e2b
@ -40,6 +40,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('HTML Examples') {
|
||||||
|
parallel {
|
||||||
|
stage('relay-js') { steps { script { copyExample() } } }
|
||||||
|
stage('store-js') { steps { script { copyExample() } } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
when { expression { GIT_BRANCH.endsWith('master') } }
|
when { expression { GIT_BRANCH.endsWith('master') } }
|
||||||
steps { script {
|
steps { script {
|
||||||
@ -63,3 +70,10 @@ def buildExample(example=STAGE_NAME) {
|
|||||||
sh "cp -r build/. ${dest}"
|
sh "cp -r build/. ${dest}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def copyExample(example=STAGE_NAME) {
|
||||||
|
def dest = "${WORKSPACE}/build/docs/examples/${example}"
|
||||||
|
dir("examples/${example}") {
|
||||||
|
sh "cp index.html ${dest}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -9,3 +9,5 @@
|
|||||||
This example uses Waku Relay to send and receive simple text messages.
|
This example uses Waku Relay to send and receive simple text messages.
|
||||||
|
|
||||||
To test the example, simply download the `index.html` file from this folder and open it in a browser.
|
To test the example, simply download the `index.html` file from this folder and open it in a browser.
|
||||||
|
|
||||||
|
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/relay-js/.
|
||||||
|
@ -9,3 +9,5 @@
|
|||||||
This example uses Waku Store to retrieve the latest ping relay message (used for keep alive purposes) and displays its timestamp.
|
This example uses Waku Store to retrieve the latest ping relay message (used for keep alive purposes) and displays its timestamp.
|
||||||
|
|
||||||
To test the example, simply download the `index.html` file from this folder and open it in a browser.
|
To test the example, simply download the `index.html` file from this folder and open it in a browser.
|
||||||
|
|
||||||
|
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/store-js/.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user