From 9fc71601e2e7dd1851e885a4f29ceb3f6abd52e3 Mon Sep 17 00:00:00 2001 From: Stefan Boos Date: Tue, 21 Nov 2023 05:19:03 +0100 Subject: [PATCH 1/2] fix: version regex in release tag selector thanks to @mwoz123 for the comment --- .github/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/release.yml b/.github/release.yml index 6be3e4d..aec7c12 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -10,7 +10,7 @@ permissions: on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+' + - '\d+\.\d+\.\d+' env: # IMPORTANT: Update this with the name of your plugin From 9f36f4dbd0475a67878fc0252f7a00453c9b788f Mon Sep 17 00:00:00 2001 From: Stefan Boos Date: Tue, 21 Nov 2023 05:26:11 +0100 Subject: [PATCH 2/2] fix: action does not show in GitHub --- .github/{ => workflows}/release.yml | 0 README.md | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/{ => workflows}/release.yml (100%) diff --git a/.github/release.yml b/.github/workflows/release.yml similarity index 100% rename from .github/release.yml rename to .github/workflows/release.yml diff --git a/README.md b/README.md index 0b81030..b78cfdc 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Quick starting guide for new plugin devs: ### 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 PLUGIN_NAME: my-plugin @@ -56,7 +56,7 @@ git tag 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. 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).