mirror of
https://github.com/brianpetro/smart-context-obsidian.git
synced 2026-07-22 05:32:16 +00:00
new release flow
This commit is contained in:
parent
bc09a57d1e
commit
6c4218eacb
2 changed files with 46 additions and 2 deletions
40
.github/workflows/release.yml
vendored
Normal file
40
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Release Smart Plugin Core
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
obsidian_smart_env_ref:
|
||||
description: Full commit SHA for brianpetro/obsidian-smart-env.
|
||||
required: true
|
||||
type: string
|
||||
jsbrains_ref:
|
||||
description: Full commit SHA for brianpetro/jsbrains.
|
||||
required: true
|
||||
type: string
|
||||
release_flags:
|
||||
description: Optional release.js flags, such as --draft or --replace-existing. Do not include --use-existing-release-notes; the reusable workflow adds it.
|
||||
required: false
|
||||
default: ''
|
||||
type: string
|
||||
attest_release_assets:
|
||||
description: Generate artifact attestations for built release assets.
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
release:
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
|
||||
uses: brianpetro/obsidian-smart-env/.github/workflows/release-smart-plugin.yml@efe85abc6195a6a867fe4144b2d75d69e88c8a93
|
||||
with:
|
||||
obsidian_smart_env_ref: ${{ inputs.obsidian_smart_env_ref }}
|
||||
jsbrains_ref: ${{ inputs.jsbrains_ref }}
|
||||
release_flags: ${{ inputs.release_flags }}
|
||||
attest_release_assets: ${{ inputs.attest_release_assets }}
|
||||
dependency_owner: brianpetro
|
||||
secrets: inherit
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
import esbuild from 'esbuild';
|
||||
import path from 'path';
|
||||
import 'dotenv/config';
|
||||
import { build_plugin } from 'obsidian-smart-env/build/build_plugin.js';
|
||||
import { build_smart_env_config } from 'obsidian-smart-env/build/build_env_config.js';
|
||||
|
||||
|
|
@ -16,12 +15,17 @@ build_plugin({
|
|||
env_config_output_dir: process.cwd(),
|
||||
env_config_roots: roots,
|
||||
external: [
|
||||
'@codemirror/view',
|
||||
'@codemirror/state',
|
||||
'@codemirror/view',
|
||||
'@xenova/transformers',
|
||||
'@huggingface/transformers',
|
||||
'http',
|
||||
'url',
|
||||
],
|
||||
plugin_id: 'smart-context',
|
||||
styles_path: path.join(process.cwd(), 'styles.css'),
|
||||
}).catch((err) => {
|
||||
console.error('Error in build process:', err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue