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:
|
||||
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
|
||||
name: icalendar-plug
|
||||
path: "*.plug.js"
|
||||
Reference in New Issue
Block a user