Skip to content

Commit e2c4b56

Browse files
committed
staging
1 parent 15afb7c commit e2c4b56

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

.github/workflows/pr.yml

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

1111
jobs:
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
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:
3526
spellcheck:
3627
runs-on: ubuntu-latest
3728
steps:

0 commit comments

Comments
 (0)