kissyjpf_rtm-sync/.github/workflows/release.yml
creamhead 9530d6a8e9 Add GitHub Actions release workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:54:59 +09:00

35 lines
829 B
YAML

name: Release Obsidian plugin
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Build plugin
run: |
npm install
npm run build
- name: Create release with assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
# Upload assets to the existing release (or create one)
gh release upload "$tag" main.js manifest.json styles.css --clobber 2>/dev/null || \
gh release create "$tag" main.js manifest.json styles.css \
--title "Release $tag" \
--generate-notes