diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95272052..a4619f0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: dryRun: - description: 'Do a dry run instead of real release' + description: 'Do a dry run to preview instead of a real release' required: true default: 'true' @@ -40,7 +40,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: '3.8.x' - - name: Install boto3 for deployjs.python + - name: Install boto3 for deploy_s3.python run: pip install boto3==1.14.63 - name: Setup Node.js diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2e91173..3625acaa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test on: [push, pull_request] jobs: - build: + test: strategy: fail-fast: false matrix: diff --git a/release.config.js b/release.config.js index d6a7d7c4..c3e85109 100644 --- a/release.config.js +++ b/release.config.js @@ -15,7 +15,7 @@ module.exports = { }], ["@semantic-release/exec", { "prepareCmd": "make release", - "publishCmd": "python scripts/deployjs.py --version ${nextRelease.version}", + "publishCmd": "python scripts/deploy_s3.py --version ${nextRelease.version}", "failCmd": "npm unpublish amplitude-js@${nextRelease.version}" }], ["@semantic-release/github", { diff --git a/scripts/deploy_s3.py b/scripts/deploy_s3.py index 7f0556c5..16904fef 100644 --- a/scripts/deploy_s3.py +++ b/scripts/deploy_s3.py @@ -1,3 +1,5 @@ +# Script used by CI to upload snippets to S3 + import argparse import os import sys