From 4308ed01975a38068159bfe0c0635cc10076fe86 Mon Sep 17 00:00:00 2001 From: grishberg Date: Tue, 7 Apr 2026 20:00:35 +0300 Subject: [PATCH] fix: add tag creation before GitHub Release action - Add step to create and push git tag before publishing release - This fixes the error 'GitHub Releases requires a tag' - The tag is created locally and pushed to remote repository - Uses github-actions user for commit attribution --- .github/workflows/build-plugin.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml index 166fd08..841d2d1 100644 --- a/.github/workflows/build-plugin.yml +++ b/.github/workflows/build-plugin.yml @@ -41,6 +41,15 @@ jobs: run: | mv plugin/build/distributions/*.zip plugin/build/distributions/yamp_plugin_${{ steps.get_version.outputs.version }}.zip + - name: Create tag + run: | + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + git tag v${{ steps.get_version.outputs.version }} + git push origin v${{ steps.get_version.outputs.version }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release id: create_release uses: softprops/action-gh-release@v2