Merge pull request #1 from wonderbird/fix/automate-release

Fix: automate release
This commit is contained in:
Evan Bonsignori 2023-12-05 15:12:03 -08:00 committed by GitHub
commit 02805d485d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ permissions:
on: on:
push: push:
tags: tags:
- '[0-9]+.[0-9]+.[0-9]+' - '\d+\.\d+\.\d+'
env: env:
# IMPORTANT: Update this with the name of your plugin # IMPORTANT: Update this with the name of your plugin

View File

@ -43,7 +43,7 @@ Quick starting guide for new plugin devs:
### Automatically ### Automatically
In [.github/release.yml](.github/release.yml) replace "my-plugin" with the name of your plugin on the following line, In [.github/release.yml](.github/workflows/release.yml) replace "my-plugin" with the name of your plugin on the following line,
```yml ```yml
PLUGIN_NAME: my-plugin PLUGIN_NAME: my-plugin
@ -56,7 +56,7 @@ git tag 1.2.3
git push origin 1.2.3 git push origin 1.2.3
``` ```
Then [release.yml](.github/release.yml) will automatically: Then [release.yml](.github/workflows/release.yml) will automatically:
1. Update `manifest.json`, `package.json`, and `package-lock.json` with the version from your tag. 1. Update `manifest.json`, `package.json`, and `package-lock.json` with the version from your tag.
2. Commit the updates to your repo (that you will need to pull down locally before making further changes) 2. Commit the updates to your repo (that you will need to pull down locally before making further changes)
3. Create a new release for your tag in your [repo's Releases](https://github.com/obsidianmd/obsidian-sample-plugin/releases). 3. Create a new release for your tag in your [repo's Releases](https://github.com/obsidianmd/obsidian-sample-plugin/releases).