mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
Update action ymls
This commit is contained in:
parent
af36ad39af
commit
e096a44c1f
17
.github/workflows/demo-deploy-s3.yml
vendored
17
.github/workflows/demo-deploy-s3.yml
vendored
|
@ -5,15 +5,20 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- v[0-9]*.[0-9]*.[0-9]*
|
- v[0-9]*.[0-9]*.[0-9]*
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: demo
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-unit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run bundle
|
||||||
|
- run: npm test
|
||||||
|
deploy:
|
||||||
|
needs: build-and-unit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: cache node modules
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
|
@ -21,7 +26,7 @@ jobs:
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: npm run build:demo
|
run: npm run build:demo
|
||||||
- name: Deploy to S3 bucket
|
- name: Deploy to S3 bucket
|
||||||
|
|
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
|
@ -7,6 +7,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
- run: npm run bundle
|
- run: npm run bundle
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user