This commit is contained in:
ccmdi 2025-10-09 09:46:22 -04:00
parent 56ef1fdcff
commit 8600d1343e
No known key found for this signature in database

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

@ -0,0 +1,30 @@
name: Release Obsidian plugin
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "22.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" \
main.js manifest.json styles.css