This action performs 3 operations.
- Uploads files and folders to storage.
- Removes all the files from storage.
- Purges pull zone.
Each operation can be activated with their respective upload, remove and purge flags.
It will upload files and folders if "true" provided. source, storageZoneName and storagePassword inputs should be provided.
It will remove all the files from storage before uploading if "true" provided. storageZoneName and storagePassword inputs should be provided.
It will purge the pull zone if "true" provided. pullZoneId and accessKey inputs should be provided.
The source directory that should be uploaded.
The name of storage zone where you are connecting to.
The storage endpoint. Default value is storage.bunnycdn.com
The storage password. It should be read and write capable.
The API key.
Pull zone ID.
- name: Deploy to BunnyCDN
uses: ayeressian/bunnycdn-storage-deploy@v2.0.2
with:
source: "dist"
storageZoneName: "${{ secrets.STORAGE_NAME }}"
storagePassword: "${{ secrets.STORAGE_PASSWORD }}"
accessKey: "${{ secrets.STORAGE_KEY }}"
pullZoneId: "${{ secrets.ZONE_ID }}"
upload: "true"
remove: "true"
purgePullZone: "true"