From 7b445ae596924977c7ad2837632e09ef75b789c5 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 31 Mar 2024 22:45:07 +0800 Subject: [PATCH] Correct release creation automation Signed-off-by: Chad Wilson --- .github/workflows/release-on-pr-merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-on-pr-merge.yml b/.github/workflows/release-on-pr-merge.yml index c898603..944aab7 100644 --- a/.github/workflows/release-on-pr-merge.yml +++ b/.github/workflows/release-on-pr-merge.yml @@ -3,7 +3,7 @@ name: Release on PR Merge on: deployment jobs: - deploy: + release: if: github.event.deployment.environment == 'production' runs-on: ubuntu-latest env: @@ -25,10 +25,10 @@ jobs: go run build/make.go --all-platforms go run build/make.go --all-platforms --distro - - name: update + - name: Release on github run: | if [ -z "$version" ]; then - version=$(cd deploy && ls screenshot* | head -1 | sed "s/\.[^\.]*$//" | sed "s/screenshot-//" | sed | sed "s/-[a-z]*\.[a-z0-9_]*$//"); + version=$(cd deploy && ls screenshot* | head -1 | sed "s/\.[^\.]*$//" | sed "s/screenshot-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//"); fi echo "VERSION=$version" >> $GITHUB_ENV