Merge pull request #340 from Akhil373/main #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload to Bunny | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: get pnpm | |
run: npm install -g pnpm | |
- name: double check xD | |
run: pnpm --version | |
- name: get dependencies | |
run: pnpm i | |
- name: buld | |
run: pnpm run build | |
- name: Deploy to BunnyCDN | |
uses: ayeressian/[email protected] | |
with: | |
source: "dist" | |
destination: "" | |
storageZoneName: "${{ secrets.STORAGE_NAME }}" | |
storagePassword: "${{ secrets.STORAGE_PASSWORD }}" | |
upload: "true" | |
remove: "false" | |
purgePullZone: "false" | |