From 3529d9080b1a492c5a119c8c6c8d3ebfba408972 Mon Sep 17 00:00:00 2001 From: Xheldon Date: Thu, 31 Jul 2025 14:46:53 +0800 Subject: [PATCH] Add release workflow and changelog for community plugin submission --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++ CHANGELOG.md | 45 +++++++++++++++++++++++++++++++++++ LICENSE | 2 +- 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e9eeb2a --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..609fed0 --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/LICENSE b/LICENSE index a716af4..be9e4cc 100644 --- a/LICENSE +++ b/LICENSE @@ -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. \ No newline at end of file +SOFTWARE.