Skip to content

Commit 6eb6f57

Browse files
authored
ci: docs and file name fix (#299)
* change deploy_s3 name * Document deploy_s3 * correct test.yml naming * update docs
1 parent ef599fc commit 6eb6f57

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
dryRun:
7-
description: 'Do a dry run instead of real release'
7+
description: 'Do a dry run to preview instead of a real release'
88
required: true
99
default: 'true'
1010

@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/setup-python@v2
4141
with:
4242
python-version: '3.8.x'
43-
- name: Install boto3 for deployjs.python
43+
- name: Install boto3 for deploy_s3.python
4444
run: pip install boto3==1.14.63
4545

4646
- name: Setup Node.js

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
test:
77
strategy:
88
fail-fast: false
99
matrix:

release.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
}],
1616
["@semantic-release/exec", {
1717
"prepareCmd": "make release",
18-
"publishCmd": "python scripts/deployjs.py --version ${nextRelease.version}",
18+
"publishCmd": "python scripts/deploy_s3.py --version ${nextRelease.version}",
1919
"failCmd": "npm unpublish amplitude-js@${nextRelease.version}"
2020
}],
2121
["@semantic-release/github", {

scripts/deploy_s3.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Script used by CI to upload snippets to S3
2+
13
import argparse
24
import os
35
import sys

0 commit comments

Comments
 (0)