文档和 release workflow

This commit is contained in:
mousebomb 2025-05-14 22:17:47 +08:00
parent 0b67b82de1
commit c598c56847
3 changed files with 37 additions and 2 deletions

35
.github/workflows/release.yaml 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,6 +1,6 @@
# Obsidian Diary ICS
[中文](README_zh.md) | [English](README.md)
[中文](README_zh.md) | English
This is an Obsidian plugin that synchronizes content from Obsidian's diary system to the system calendar application (such as macOS Calendar, Windows Calendar, etc.).

View file

@ -1,6 +1,6 @@
# Obsidian Diary ICS
[中文](README_zh.md) | [English](README.md)
中文 | [English](README.md)
这是一个Obsidian插件用于将Obsidian的日记系统内容同步到系统的日历应用中如macOS日历、Windows日历等