Skip to content

Commit

Permalink
deploy to nsite instead of s3
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Sep 26, 2024
1 parent b96f496 commit 9e57fe8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ jobs:
- name: Redirect 404 to Index for SPA
run: cp dist/index.html dist/404.html

- name: Deploy
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: "${{ secrets.S3_BUCKET }}"
bucket-region: us-east-1
dist-id: "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}"
invalidation: /
delete-removed: true
no-cache: true
private: true
files-to-include: "{.*/**,**}"
# - name: Deploy
# uses: reggionick/s3-deploy@v4
# with:
# folder: dist
# bucket: "${{ secrets.S3_BUCKET }}"
# bucket-region: us-east-1
# dist-id: "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}"
# invalidation: /
# delete-removed: true
# no-cache: true
# private: true
# files-to-include: "{.*/**,**}"

- name: Deploy nsite
run: npx -y nsite-cli upload dist --purge --privatekey ${{ secrets.NSITE_KEY }}

0 comments on commit 9e57fe8

Please sign in to comment.