Automate release process with a GitHub action#72
Automate release process with a GitHub action#72Ebonsignori wants to merge 6 commits intoobsidianmd:masterfrom
Conversation
From @mwoz123 's PR
| manifest.json | ||
| styles.css | ||
|
|
||
| - name: Upload artifacts for debugging |
There was a problem hiding this comment.
Build output artifacts (main.js, manifest.json nor styles.css) doesn't seem to be available anywhere on github.
There was a problem hiding this comment.
Does moving the release.yml file into the (new) folder .github/workflows/ resolve the issue you have in mind, @mwoz123 ?
See commits from Nov. 21 in my fork of the obsidian-sample-plugin and corresponding release 0.0.1 there and my pull request to @Ebonsignori 's fork
| # Creates a new GitHub Release when a tag is pushed | ||
| # See https://docs.obsidian.md/Plugins/Releasing/Submit+your+plugin#Step+2+Create+a+release | ||
| # Tag should be in the format of x.y.z without `v` prefix | ||
| # For example `1.0.0` is a valid tag, but `v1.0.0` is not |
There was a problem hiding this comment.
Could you make usage of this GH action on your your fork? to illustrate what it does - cause your fork doesn't have any tags ;)
There was a problem hiding this comment.
You can see examples in these repos. All of the releases are auto generated by the action
| @@ -0,0 +1,80 @@ | |||
| # Creates a new GitHub Release when a tag is pushed | |||
There was a problem hiding this comment.
Is there a way to trigger it directly from GH UI? or it has to be done manually in the console by creating a tag and then pushing it to remote?
There was a problem hiding this comment.
The workflow could be modified to accept a manual dispatch with the tag as the argument if you think this is a sufficient use case.
As it is I don't know that this PR will ever be merged so I might not put forth the effort to support this
thanks to @mwoz123 for the comment
Fix: automate release
|
@chaintng I'm not the owner of the repo nor GitHub DevOps expert. @Ebonsignori asked me close my PR in favour of this, improved PR, so I agreed and put some comments here. |
Adds the option for people who use this template to push version tags to automate (nearly) every part of a standard Obsidian release.
When pushing a valid tag, e.g.
1.2.3this action:manifest.json,package.json, andpackage-lock.jsonwith the version from the tag.