Skip to content

Commit

Permalink
Merge pull request #44 from jcps07/main
Browse files Browse the repository at this point in the history
Update to pr-close and production-hugo actions
  • Loading branch information
jcps07 authored Feb 12, 2025
2 parents 1077759 + 3f1c6f8 commit f9f5da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-close.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ jobs:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
AWS_REGION: ${{ vars.AWS_S3_BUCKET_REGION }}
PATH_TO_DELETE: 'pr-${{ github.event.number }}'
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.AWS_CF_DISTRIBUTION }}
PATHS: '/pr-${{ github.event.number }}/*'
AWS_REGION: "us-east-1"
AWS_REGION: ${{ vars.AWS_CF_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
message: |
Preview deployed at ${{ vars.PREVIEW_URL }}/pr-${{ github.event.number }}
Preview ${{ vars.PREVIEW_URL }}/pr-${{ github.event.number }} has been removed
2 changes: 1 addition & 1 deletion .github/workflows/production-hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit f9f5da2

Please sign in to comment.