Skip to content

Commit

Permalink
ci: deploy to bunnycdn
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmoose committed Nov 28, 2023
1 parent 4a9ffcd commit cd8a13a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy site to BunnyCDN

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
container: node:18.9.0
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Build
run: CI=true npm run build
- name: Deploy to BunnyCDN
uses: ayeressian/[email protected]
with:
source: "dist"
destination: "www"
storageZoneName: "hbas-frontend"
storageEndpoint: "uk.storage.bunnycdn.com"
storagePassword: "${{ secrets.STORAGE_PASSWORD }}"
accessKey: "${{ secrets.STORAGE_KEY }}"
pullZoneId: "hbas-frontend"
upload: "true"
remove: "true"
purgePullZone: "true"

0 comments on commit cd8a13a

Please sign in to comment.