From 606340058e3cee7bc252bece7324e492f51ed806 Mon Sep 17 00:00:00 2001 From: sstent Date: Sun, 15 Feb 2026 14:54:48 +0000 Subject: [PATCH] Update .github/workflows/publish.yml --- .github/workflows/publish.yml | 58 +++++++++++++---------------------- 1 file changed, 22 insertions(+), 36 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index feb1186..53bf639 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,52 +1,38 @@ -name: Publish +name: Build SilverBullet Plug + on: - workflow_dispatch: push: - branches: main + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: jobs: - publish: + build: runs-on: ubuntu-latest + steps: - - name: Clone repository + - name: Checkout code uses: actions/checkout@v4 - - name: Install Deno + - name: Setup Deno uses: denoland/setup-deno@v2 with: - deno-version: v2.x + deno-version: v2.x # or "stable" - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 23 - - - name: Install dependencies + - name: Install SilverBullet CLI run: | - cd editor - npm install + deno install -f -A --name silverbullet jsr:@silverbulletmd/silverbullet + echo "$HOME/.deno/bin" >> $GITHUB_PATH - - name: Build editor - run: | - cd editor - npm run build + - name: Cache Deno dependencies + run: deno cache main.ts || true # Cache entry point if applicable - - name: Build step - run: "deno task build" + - name: Build Plug + run: deno task build - - name: Update release tag - uses: rickstaa/action-create-tag@v1 + - name: Upload Build Artifact + uses: actions/upload-artifact@v4 with: - tag: "edge" - force_push_tag: true - - - name: Release - uses: softprops/action-gh-release@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - draft: false - tag_name: edge - body: Automated build from commit ${{ github.sha }} - files: | - excalidraw.plug.js \ No newline at end of file + name: icalendar-plug + path: "*.plug.js" \ No newline at end of file