deploy prod to bunny

This commit is contained in:
John Bowdre 2024-06-06 19:58:17 -05:00
parent d0c2c61f52
commit 265493ec15

View file

@ -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 }}