From 44a0caa0be353a0b595e19008b649f0c561b8eca Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 31 Mar 2024 22:54:07 +0800 Subject: [PATCH] Correct release automation (#54) Signed-off-by: Chad Wilson --- .github/workflows/release-on-pr-merge.yml | 7 ++++++- plugin.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-on-pr-merge.yml b/.github/workflows/release-on-pr-merge.yml index 6c35447..94f6c99 100644 --- a/.github/workflows/release-on-pr-merge.yml +++ b/.github/workflows/release-on-pr-merge.yml @@ -16,6 +16,11 @@ jobs: with: go-version-file: 'go.mod' + - name: Setup git + run: | + git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" + git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" + - name: Build artifacts run: | go run build/make.go --all-platforms @@ -24,7 +29,7 @@ jobs: - name: Release on github run: | if [ -z "$version" ]; then - version=$(cd bin/distros && ls spectacle* | head -1 | sed "s/\.[^\.]*$//" | sed "s/spectacle-//" | sed | sed "s/-[a-z]*\.[a-z0-9_]*$//"); + version=$(cd bin/distros && ls spectacle* | head -1 | sed "s/\.[^\.]*$//" | sed "s/spectacle-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//"); fi echo "VERSION=$version" >> $GITHUB_ENV diff --git a/plugin.json b/plugin.json index 1e08528..ad4c539 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id" : "spectacle", - "version" : "0.1.5", + "version" : "0.2.0", "name" : "Spectacle", "description" : "Markdown to HTML", "install": {