Add release workflow and changelog for community plugin submission

This commit is contained in:
Xheldon 2025-07-31 14:46:53 +08:00
parent 44ff9bc5fa
commit 3529d9080b
3 changed files with 80 additions and 1 deletions

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

@ -0,0 +1,34 @@
name: Release Obsidian plugin
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- 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

45
CHANGELOG.md Normal file
View file

@ -0,0 +1,45 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.0] - 2024-12-19
### Added
- Initial release of Git Sync plugin
- Git synchronization with GitHub repositories
- Support for folder-specific sync (not entire repository)
- Image upload to cloud storage services:
- Aliyun OSS
- Tencent COS
- AWS S3
- Cloudflare R2
- Bilingual support (Chinese/English)
- Mobile device support
- Smart file caching system
- Real-time status display in status bar
- Configurable image processing with toggle switch
- Local image storage option
- Responsive settings interface
- Command palette integration
- Right-click context menu support
### Features
- **Git Sync**: Bidirectional synchronization with GitHub
- **Image Processing**: Paste images and automatically upload to cloud storage
- **Internationalization**: Full Chinese and English support
- **Mobile Support**: Works on both desktop and mobile devices
- **Performance**: Smart caching reduces API calls
- **User Experience**: Modern interface with real-time feedback
### Technical
- TypeScript implementation
- ESBuild for fast compilation
- Comprehensive error handling
- Plugin settings persistence
- Hot reload development support

View file

@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.