Skip to content

Commit 9248750

Browse files
committed
edits
1 parent e2c4b56 commit 9248750

File tree

2 files changed

+39
-14
lines changed

2 files changed

+39
-14
lines changed

.github/workflows/pr.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@ on:
99
- checks_requested
1010

1111
jobs:
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:

.github/workflows/review.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 }}

0 commit comments

Comments
 (0)