Add release workflow

This commit is contained in:
Aryan Gupta 2025-06-15 20:49:51 +10:00
parent 69fa4b3a52
commit 41ed8deeae
2 changed files with 38 additions and 3 deletions

35
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Release Obsidian plugin
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Build plugin
run: |
npm install
npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css

View file

@ -1,9 +1,9 @@
{
"id": "new-3d-graph",
"name": "3D Graph Plugin",
"name": "New 3D Graph",
"version": "2.0.0",
"minAppVersion": "1.7.0",
"description": "A 3D Graph Plugin for Obsidian.",
"minAppVersion": "1.5.0",
"description": "Visualize your Vault in 3D with a powerful, highly customizable, and filterable graph.",
"author": "Aryan Gupta",
"authorUrl": "https://aryan-gupta.is-a.dev",
"isDesktopOnly": true