Deploy with bunny.net #1
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: 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" |