name: Build SilverBullet Plug on: push: branches: [ main ] pull_request: branches: [ main ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Deno uses: denoland/setup-deno@v2 with: deno-version: v2.x # or "stable" - name: Install SilverBullet CLI run: | # Added the --global flag to fix the permission error deno install --global -f -A --name silverbullet jsr:@silverbulletmd/silverbullet echo "$HOME/.deno/bin" >> $GITHUB_PATH - name: Cache Deno dependencies run: deno cache main.ts || true # Cache entry point if applicable - name: Build Plug run: deno task build - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: name: icalendar-plug path: "*.plug.js"