mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 09:47:31 +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
 | 
			
		||||
        path: bundles
 | 
			
		||||
    - run: npm run e2e
 | 
			
		||||
  deploy-demo:
 | 
			
		||||
    needs: [bundle, unit-tests, e2e-tests]
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v1
 | 
			
		||||
      - name: Configure AWS Credentials
 | 
			
		||||
        uses: aws-actions/configure-aws-credentials@v1
 | 
			
		||||
        with:
 | 
			
		||||
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
 | 
			
		||||
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
 | 
			
		||||
          aws-region: us-east-1
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: npm ci
 | 
			
		||||
      - name: Download bundled artifacts
 | 
			
		||||
        uses: actions/download-artifact@v2
 | 
			
		||||
        with:
 | 
			
		||||
          name: bundles
 | 
			
		||||
          path: bundles
 | 
			
		||||
      - name: Build package
 | 
			
		||||
        run: npm run build:demo
 | 
			
		||||
      - name: Deploy to S3 bucket
 | 
			
		||||
        run: npm run deploy:demo
 | 
			
		||||
      - name: Invalidate
 | 
			
		||||
        run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*"
 | 
			
		||||
  # disable this for now
 | 
			
		||||
  # deploy-demo:
 | 
			
		||||
  #   needs: [bundle, unit-tests, e2e-tests]
 | 
			
		||||
  #   runs-on: ubuntu-latest
 | 
			
		||||
  #   steps:
 | 
			
		||||
  #     - uses: actions/checkout@v1
 | 
			
		||||
  #     - name: Configure AWS Credentials
 | 
			
		||||
  #       uses: aws-actions/configure-aws-credentials@v1
 | 
			
		||||
  #       with:
 | 
			
		||||
  #         aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
 | 
			
		||||
  #         aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
 | 
			
		||||
  #         aws-region: us-east-1
 | 
			
		||||
  #     - name: Install dependencies
 | 
			
		||||
  #       run: npm ci
 | 
			
		||||
  #     - name: Download bundled artifacts
 | 
			
		||||
  #       uses: actions/download-artifact@v2
 | 
			
		||||
  #       with:
 | 
			
		||||
  #         name: bundles
 | 
			
		||||
  #         path: bundles
 | 
			
		||||
  #     - name: Build package
 | 
			
		||||
  #       run: npm run build:demo
 | 
			
		||||
  #     - name: Deploy to S3 bucket
 | 
			
		||||
  #       run: npm run deploy:demo
 | 
			
		||||
  #     - name: Invalidate
 | 
			
		||||
  #       run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*"
 | 
			
		||||
  publish:
 | 
			
		||||
    needs: [bundle, unit-tests, e2e-tests]
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +92,7 @@ jobs:
 | 
			
		|||
            npm-${{ hashFiles('package-lock.json') }}
 | 
			
		||||
            npm-
 | 
			
		||||
      - name: Before deploy
 | 
			
		||||
        run: npm run declarations
 | 
			
		||||
        run: npm ci && npm run declarations
 | 
			
		||||
      - name: Publish to NPM
 | 
			
		||||
        run: npm publish
 | 
			
		||||
        env:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user