Release Obsidian plugin #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Obsidian plugin | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: "Release name" | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: oven-sh/[email protected] | |
with: | |
bun-version: 1.0.24 | |
- name: Install dependencies | |
run: bun install | |
- name: Build plugin | |
run: bun run build | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
zip -r obsidian-create-task.zip main.js manifest.json styles.css | |
gh release create ${{ github.event.inputs.name }} \ | |
--title="${{ github.event.inputs.name }}" \ | |
--draft \ | |
obsidian-create-task.zip |