Skip to content

Commit 8a353c4

Browse files
committed
add staging
1 parent 15a2fe7 commit 8a353c4

File tree

3 files changed

+30
-41
lines changed

3 files changed

+30
-41
lines changed

.github/workflows/pr.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
run: yarn install --frozen-lockfile
3737
- name: Build the Docusaurus site
3838
run: yarn build
39+
deploy-to-review:
40+
uses: SumoLogic/sumologic-documentation/.github/workflows/build_and_deploy.yml@main
41+
with:
42+
hostname: https://d2t1s0ah22jxsa.cloudfront.net
43+
base_url: /${{ github.ref_name }}/
44+
environment: review/${{ github.ref_name }}
45+
secrets:
46+
S3_BUCKET_NAME: ${{ secrets.REVIEW_S3_BUCKET_NAME }}
47+
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.REVIEW_CLOUDFRONT_DISTRIBUTION_ID }}
48+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
49+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3950
spellcheck:
4051
runs-on: ubuntu-latest
4152
steps:

.github/workflows/rebuild-lockfile-linux.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/review.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: deploy-to-review
2+
3+
on: workflow_dispatch
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
deploy-to-review:
10+
uses: SumoLogic/sumologic-documentation/.github/workflows/build_and_deploy.yml@main
11+
with:
12+
hostname: https://d2t1s0ah22jxsa.cloudfront.net
13+
base_url: /${{ github.ref_name }}/
14+
environment: review/${{ github.ref_name }}
15+
secrets:
16+
S3_BUCKET_NAME: ${{ secrets.REVIEW_S3_BUCKET_NAME }}
17+
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.REVIEW_CLOUDFRONT_DISTRIBUTION_ID }}
18+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
19+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)