forked from GitHubMirrors/silverbullet-icalendar
Update .github/workflows/publish.yml
Some checks failed
Build SilverBullet Plug / build (push) Failing after 24s
Some checks failed
Build SilverBullet Plug / build (push) Failing after 24s
This commit is contained in:
58
.github/workflows/publish.yml
vendored
58
.github/workflows/publish.yml
vendored
@@ -1,52 +1,38 @@
|
|||||||
name: Publish
|
name: Build SilverBullet Plug
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches: main
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v2
|
uses: denoland/setup-deno@v2
|
||||||
with:
|
with:
|
||||||
deno-version: v2.x
|
deno-version: v2.x # or "stable"
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Install SilverBullet CLI
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 23
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
cd editor
|
deno install -f -A --name silverbullet jsr:@silverbulletmd/silverbullet
|
||||||
npm install
|
echo "$HOME/.deno/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Build editor
|
- name: Cache Deno dependencies
|
||||||
run: |
|
run: deno cache main.ts || true # Cache entry point if applicable
|
||||||
cd editor
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Build step
|
- name: Build Plug
|
||||||
run: "deno task build"
|
run: deno task build
|
||||||
|
|
||||||
- name: Update release tag
|
- name: Upload Build Artifact
|
||||||
uses: rickstaa/action-create-tag@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
tag: "edge"
|
name: icalendar-plug
|
||||||
force_push_tag: true
|
path: "*.plug.js"
|
||||||
|
|
||||||
- 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
|
|
||||||
Reference in New Issue
Block a user