mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-27 17:12:18 +00:00
deploy prod to bunny
This commit is contained in:
parent
d0c2c61f52
commit
265493ec15
1 changed files with 13 additions and 6 deletions
19
.github/workflows/deploy-prod.yml
vendored
19
.github/workflows/deploy-prod.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Deploy to Production
|
name: Build and Deploy Prod
|
||||||
|
|
||||||
# only run on changes to main
|
# only run on changes to main
|
||||||
on:
|
on:
|
||||||
|
@ -52,12 +52,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm i @torchlight-api/torchlight-cli
|
npm i @torchlight-api/torchlight-cli
|
||||||
npx torchlight
|
npx torchlight
|
||||||
- name: Deploy HTML to Neocities
|
- name: Deploy to Bunny
|
||||||
uses: bcomnes/deploy-to-neocities@v1
|
uses: ayeressian/bunnycdn-storage-deploy@v2.2.2
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
source: public
|
||||||
cleanup: true
|
destination: /
|
||||||
dist_dir: public
|
storageZoneName: "${{ secrets.BUNNY_STORAGE_NAME }}"
|
||||||
|
storagePassword: "${{ secrets.BUNNY_STORAGE_PASSWORD }}"
|
||||||
|
storageEndpoint: "${{ secrets.BUNNY_STORAGE_ENDPOINT }}"
|
||||||
|
accessKey: "${{ secrets.BUNNY_API_KEY }}"
|
||||||
|
pullZoneId: "${{ secrets.BUNNY_ZONE_ID }}"
|
||||||
|
upload: "true"
|
||||||
|
remove: "true"
|
||||||
|
purgePullZone: "true"
|
||||||
- name: Deploy GMI to Agate
|
- name: Deploy GMI to Agate
|
||||||
run: |
|
run: |
|
||||||
rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ deploy@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}
|
rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ deploy@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}
|
||||||
|
|
Loading…
Reference in a new issue