|
1 | 1 | name: Deploy Website to AWS
|
2 | 2 |
|
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 |
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | build-deploy:
|
@@ -33,31 +33,31 @@ jobs:
|
33 | 33 | - name: Build the website
|
34 | 34 | run: gulp web
|
35 | 35 |
|
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 |
43 | 43 |
|
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 |
48 | 48 |
|
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 | + # }); |
61 | 61 |
|
62 | 62 | - name: Configure AWS credentials Production
|
63 | 63 | # if: github.event_name == 'pull_request'
|
|
0 commit comments