Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 829 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 829 Bytes

BunnyAction

This action deploys the specified directory to BunnyCDN.

Upload and purge Pull Zone

- name: Deploy to BunnyCDN
  uses: Bearologics/BunnyAction@main
  with:
    source: "dist"
    storageZoneName: "myzone"
    accessKey: "${{ secrets.BUNNY_CDN_STORAGE_KEY }}"
    zoneId: "${{ secrets.BUNNY_CDN_PULL_ZONE_ID }}"
    zoneKey: "${{ secrets.BUNNY_CDN_ZONE_KEY }}"
    dangerouslyDeleteAllExistingData: true

Upload only

- name: Upload to BunnyCDN
  uses: Bearologics/BunnyAction@main
  with:
    source: "dist"
    storageZoneName: "myzone"
    accessKey: "${{ secrets.BUNNY_CDN_STORAGE_KEY }}"

Purge Pull Zone

- name: Purge BunnyCDN
  uses: Bearologics/BunnyAction@main
  with:
    zoneId: "${{ secrets.BUNNY_CDN_PULL_ZONE_ID }}"
    zoneKey: "${{ secrets.BUNNY_CDN_ZONE_KEY }}"