Skip to content

Commit fa6d91c

Browse files
committed
Travis auto-deployment
1 parent 0982b0f commit fa6d91c

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sudo: off
2+
3+
language: node_js
4+
5+
node_js:
6+
- "8"
7+
8+
script:
9+
- bash ./deploy.sh
10+
11+
env:
12+
global:
13+
- ENCRYPTION_LABEL: "bc1f69dfbe70"
14+
- GH_USER_NAME: "littledan"
15+
- GH_USER_EMAIL: "littledan@igalia.com"
16+
- PRIVATE_KEY_FILE_NAME: "github_deploy_key.enc"

deploy.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -ev
4+
5+
# Enable SSH authentication
6+
7+
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
8+
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
9+
ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
10+
ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
11+
12+
$(npm bin)/set-up-ssh --key "$ENCRYPTED_KEY" \
13+
--iv "$ENCRYPTED_IV" \
14+
--path-encrypted-key "$PRIVATE_KEY_FILE_NAME"
15+
16+
# Update the content from the `gh-pages` branch
17+
18+
$(npm bin)/update-branch --commands "mkdir out && ecmarkup spec.html out/index.html" \
19+
--commit-message "Update gh-pages [skip ci]" \
20+
--directory "out" \
21+
--distribution-branch "gh-pages" \
22+
--source-branch "master"
23+

github_deploy_key.enc

3.17 KB
Binary file not shown.

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"private": true,
3+
"name": "proposal-pipeline-operator",
4+
"version": "1.0.0",
5+
"description": "ECMAScript Pipeline Operator proposal",
6+
"repository": "tc39/proposal-pipeline-operator",
7+
"author": "ECMA TC39",
8+
"license": "SEE LICENSE IN https://tc39.github.io/ecma262/#sec-copyright-and-software-license",
9+
"homepage": "https://tc39.github.io/proposal-pipeline-operator/",
10+
"dependencies": {
11+
"ecmarkup": "^3.12.0"
12+
},
13+
"devDependencies": {
14+
"@alrra/travis-scripts": "^3.0.0"
15+
}
16+
}

0 commit comments

Comments
 (0)