Skip to content

Deploy with bunny.net #1

Deploy with bunny.net

Deploy with bunny.net #1

Workflow file for this run

name: Deploy when pushing on main
on:
push:
branches:
- 'main'
jobs:
publish:
runs-on: ubuntu-latest
name: 'Build and deploy script'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setuo Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Built site
run: bun run build
- name: Deploy Script to Bunny Edge Scripting
uses: BunnyWay/actions/deploy-script@main
with:
script_id: ${{ secrets.SCRIPT_ID }}
deploy_key: ${{ secrets.DEPLOY_KEY }}
file: "main.ts"