File tree Expand file tree Collapse file tree 2 files changed +39
-14
lines changed Expand file tree Collapse file tree 2 files changed +39
-14
lines changed Original file line number Diff line number Diff line change 99 - checks_requested
1010
1111jobs :
12- deploy-to-review :
13- uses : SumoLogic/sumologic-documentation/.github/workflows/build_and_deploy.yml@main
14- with :
15- hostname : https://d2t1s0ah22jxsa.cloudfront.net
16- base_url : /${{ github.ref_name }}/
17- environment : review/${{ github.ref_name }}
18- secrets :
19- S3_BUCKET_NAME : ${{ secrets.REVIEW_S3_BUCKET_NAME }}
20- CLOUDFRONT_DISTRIBUTION_ID : ${{ secrets.REVIEW_CLOUDFRONT_DISTRIBUTION_ID }}
21- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
22- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23- spellcheck :
24- runs-on : ubuntu-latest
25- steps :
12+ build-and-deploy :
13+ runs-on : ubuntu-22.04
14+ env :
15+ CI : true
16+ NODE_ENV : production
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Node.js
20+ uses : actions/setup-node@v3
21+ with :
22+ node-version : ' 20.x'
23+ cache : ' yarn'
24+ - name : Docusaurus Webpack cache
25+ uses : actions/cache@v3
26+ with :
27+ path : node_modules/.cache
28+ key : ${{ runner.os }}-webpack-cache
29+ - name : Install dependencies
30+ run : yarn install --frozen-lockfile
31+ - name : Build the Docusaurus site
32+ env :
33+ NODE_OPTIONS : " --max-old-space-size=8192 --max-http-header-size=8192"
34+ run : yarn build
2635 spellcheck :
2736 runs-on : ubuntu-latest
2837 steps :
Original file line number Diff line number Diff line change 1+ name : deploy-to-review
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ deploy-to-review :
7+ uses : SumoLogic/sumologic-documentation/.github/workflows/build_and_deploy.yml@main
8+ with :
9+ hostname : https://d2t1s0ah22jxsa.cloudfront.net
10+ base_url : /${{ github.ref_name }}/
11+ environment : review/${{ github.ref_name }}
12+ secrets :
13+ S3_BUCKET_NAME : ${{ secrets.REVIEW_S3_BUCKET_NAME }}
14+ CLOUDFRONT_DISTRIBUTION_ID : ${{ secrets.REVIEW_CLOUDFRONT_DISTRIBUTION_ID }}
15+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
16+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
You can’t perform that action at this time.
0 commit comments