obsidian-sample-plugin
obsidian-sample-plugin copied to clipboard
FEAT: Automate Bump Version, Create Release and Generate Artifacts using GitHub Action
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)
- GitHub Action will create new commit and increment version property in
package.jsonandmanifest.jsonfiles - It also Create a Release and automatically attached build artifacts.
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 ?
- Update your branch with the latest changes by running
-
git pull --rebase
- 🎉 That’s it! Now try pushing again. You shouldn’t see the error anymore.
-
git push