mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-29 13:03:33 +02:00
deploy to nsite instead of s3
This commit is contained in:
27
.github/workflows/deploy-next.yml
vendored
27
.github/workflows/deploy-next.yml
vendored
@@ -32,15 +32,18 @@ jobs:
|
|||||||
- name: Redirect 404 to Index for SPA
|
- name: Redirect 404 to Index for SPA
|
||||||
run: cp dist/index.html dist/404.html
|
run: cp dist/index.html dist/404.html
|
||||||
|
|
||||||
- name: Deploy
|
# - name: Deploy
|
||||||
uses: reggionick/s3-deploy@v4
|
# uses: reggionick/s3-deploy@v4
|
||||||
with:
|
# with:
|
||||||
folder: dist
|
# folder: dist
|
||||||
bucket: "${{ secrets.S3_BUCKET }}"
|
# bucket: "${{ secrets.S3_BUCKET }}"
|
||||||
bucket-region: us-east-1
|
# bucket-region: us-east-1
|
||||||
dist-id: "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}"
|
# dist-id: "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}"
|
||||||
invalidation: /
|
# invalidation: /
|
||||||
delete-removed: true
|
# delete-removed: true
|
||||||
no-cache: true
|
# no-cache: true
|
||||||
private: true
|
# private: true
|
||||||
files-to-include: "{.*/**,**}"
|
# files-to-include: "{.*/**,**}"
|
||||||
|
|
||||||
|
- name: Deploy nsite
|
||||||
|
run: npx -y nsite-cli upload dist --purge --privatekey ${{ secrets.NSITE_KEY }}
|
||||||
|
Reference in New Issue
Block a user