obsidian-sample-plugin icon indicating copy to clipboard operation
obsidian-sample-plugin copied to clipboard

FEAT: Automate Bump Version, Create Release and Generate Artifacts using GitHub Action

Open chaintng opened this issue 1 year ago • 0 comments

Overview

  • Sample Plugin is like a boilerplate for building community plugin.
  • This MR will ease the process after the maintainer finish the code changes by doing following things in CI/CD using GitHub Actions

Features

After maintainer make a new commit to their project's main branch (main or master)

  1. GitHub Action will create new commit and increment version property in package.json and manifest.json files image
  2. It also Create a Release and automatically attached build artifacts. image image

Basically, developers or maintainers will only have to care about the code part, and let CI/CD (GitHub Action) handle the rest 🎉

Demo

  • You can see them in action on my test repository here
  • https://github.com/chaintng/test-auto-build-obs-plugin

CAUTIONS

Your next git push might get REJECTED because the local master branch isn’t up-to-date with the remote one.

How to Fix It ?

  1. Update your branch with the latest changes by running
  • git pull --rebase
  1. 🎉 That’s it! Now try pushing again. You shouldn’t see the error anymore.
  • git push

image

chaintng avatar Dec 21 '24 10:12 chaintng