mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
* chore: update test script and the corresponding pipelines * update the coverage threshold
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: AWS S3 sandbox
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
deploy-s3-sandbox:
|
|
if: ${{ github.event.label.name == 'deploy_s3_sandbox' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: node --version
|
|
- run: npm --version
|
|
- name: cache node modules
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: |
|
|
npm-${{ hashFiles('package-lock.json') }}
|
|
npm-
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Bundle into single file
|
|
run: npm run webpack-bundle
|
|
|
|
- name: Upload to AWS sandbox S3 bucket
|
|
run: npm run upload
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SANDBOX_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SANDBOX_SECRET_ACCESS_KEY }}
|
|
AWS_DEFAULT_REGION: us-east-1
|
|
AWS_S3_PATH: redocly-sandbox-openapi-cli-dist
|