43 lines
864 B
YAML
43 lines
864 B
YAML
name: Build and Upload Caido Plugin
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
bun install
|
|
|
|
- name: Build plugin
|
|
run: |
|
|
bun run build
|
|
|
|
- name: Archive built plugin
|
|
run: |
|
|
mkdir -p dist-artifact
|
|
cp -r dist/* dist-artifact/
|
|
# 만약 manifest.json도 포함되어야 한다면
|
|
cp manifest.json dist-artifact/
|
|
|
|
- name: Upload plugin artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: caido-plugin
|
|
path: dist-artifact
|