Skip to content

Commit 600dae0

Browse files
authored
Update publish_website_to_aws.yml
1 parent 929c054 commit 600dae0

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

.github/workflows/publish_website_to_aws.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Deploy Website to AWS
22

3-
on:
4-
pull_request:
5-
types: [opened, synchronize, reopened]
6-
push:
7-
branches:
8-
- master
3+
on: push
4+
# pull_request:
5+
# types: [opened, synchronize, reopened]
6+
# push:
7+
# branches:
8+
# - master
99

1010
jobs:
1111
build-deploy:
@@ -33,31 +33,31 @@ jobs:
3333
- name: Build the website
3434
run: gulp web
3535

36-
- name: Configure AWS credentials (Pull Request)
37-
if: github.event_name == 'pull_request'
38-
uses: aws-actions/configure-aws-credentials@v4
39-
with:
40-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
41-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
42-
aws-region: us-east-1
36+
# - name: Configure AWS credentials (Pull Request)
37+
# if: github.event_name == 'pull_request'
38+
# uses: aws-actions/configure-aws-credentials@v4
39+
# with:
40+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
41+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
42+
# aws-region: us-east-1
4343

44-
- name: Deploy to S3 (Pull Request)
45-
if: github.event_name == 'pull_request'
46-
run: |
47-
aws s3 sync build/gh-pages/ s3://${{ vars.AWS_BUCKET_NAME }}/${{ github.event.pull_request.head.sha }}/ --acl public-read
44+
# - name: Deploy to S3 (Pull Request)
45+
# if: github.event_name == 'pull_request'
46+
# run: |
47+
# aws s3 sync build/gh-pages/ s3://${{ vars.AWS_BUCKET_NAME }}/${{ github.event.pull_request.head.sha }}/ --acl public-read
4848

49-
- name: Comment deployment URL on PR
50-
if: github.event_name == 'pull_request'
51-
uses: actions/github-script@v7
52-
with:
53-
script: |
54-
const url = `https://${{ vars.AWS_BUCKET_NAME }}.s3.us-east-1.amazonaws.com/${{ github.event.pull_request.head.sha }}/web/viewer.html?file=${{ vars.TEST_PDF }}`;
55-
github.rest.issues.createComment({
56-
issue_number: context.issue.number,
57-
owner: context.repo.owner,
58-
repo: context.repo.repo,
59-
body: `Preview your deployment: [View Here](${url})`
60-
});
49+
# - name: Comment deployment URL on PR
50+
# if: github.event_name == 'pull_request'
51+
# uses: actions/github-script@v7
52+
# with:
53+
# script: |
54+
# const url = `https://${{ vars.AWS_BUCKET_NAME }}.s3.us-east-1.amazonaws.com/${{ github.event.pull_request.head.sha }}/web/viewer.html?file=${{ vars.TEST_PDF }}`;
55+
# github.rest.issues.createComment({
56+
# issue_number: context.issue.number,
57+
# owner: context.repo.owner,
58+
# repo: context.repo.repo,
59+
# body: `Preview your deployment: [View Here](${url})`
60+
# });
6161

6262
- name: Configure AWS credentials Production
6363
# if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)