mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
chore: fix publish workflow and disable s3 demo
This commit is contained in:
parent
aeb276aaf1
commit
56543d239e
51
.github/workflows/publish.yml
vendored
51
.github/workflows/publish.yml
vendored
|
@ -45,30 +45,31 @@ jobs:
|
||||||
name: bundles
|
name: bundles
|
||||||
path: bundles
|
path: bundles
|
||||||
- run: npm run e2e
|
- run: npm run e2e
|
||||||
deploy-demo:
|
# disable this for now
|
||||||
needs: [bundle, unit-tests, e2e-tests]
|
# deploy-demo:
|
||||||
runs-on: ubuntu-latest
|
# needs: [bundle, unit-tests, e2e-tests]
|
||||||
steps:
|
# runs-on: ubuntu-latest
|
||||||
- uses: actions/checkout@v1
|
# steps:
|
||||||
- name: Configure AWS Credentials
|
# - uses: actions/checkout@v1
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
# - name: Configure AWS Credentials
|
||||||
with:
|
# uses: aws-actions/configure-aws-credentials@v1
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
# with:
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-region: us-east-1
|
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
- name: Install dependencies
|
# aws-region: us-east-1
|
||||||
run: npm ci
|
# - name: Install dependencies
|
||||||
- name: Download bundled artifacts
|
# run: npm ci
|
||||||
uses: actions/download-artifact@v2
|
# - name: Download bundled artifacts
|
||||||
with:
|
# uses: actions/download-artifact@v2
|
||||||
name: bundles
|
# with:
|
||||||
path: bundles
|
# name: bundles
|
||||||
- name: Build package
|
# path: bundles
|
||||||
run: npm run build:demo
|
# - name: Build package
|
||||||
- name: Deploy to S3 bucket
|
# run: npm run build:demo
|
||||||
run: npm run deploy:demo
|
# - name: Deploy to S3 bucket
|
||||||
- name: Invalidate
|
# run: npm run deploy:demo
|
||||||
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*"
|
# - name: Invalidate
|
||||||
|
# run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*"
|
||||||
publish:
|
publish:
|
||||||
needs: [bundle, unit-tests, e2e-tests]
|
needs: [bundle, unit-tests, e2e-tests]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -91,7 +92,7 @@ jobs:
|
||||||
npm-${{ hashFiles('package-lock.json') }}
|
npm-${{ hashFiles('package-lock.json') }}
|
||||||
npm-
|
npm-
|
||||||
- name: Before deploy
|
- name: Before deploy
|
||||||
run: npm run declarations
|
run: npm ci && npm run declarations
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
run: npm publish
|
run: npm publish
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user