From 2b2737ca4f52b560ec43c322e8c3295480a7c8ad Mon Sep 17 00:00:00 2001 From: Pablo Chacin Date: Mon, 30 Oct 2023 13:24:09 +0100 Subject: [PATCH] Fix release target Signed-off-by: Pablo Chacin --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aa78c7e0..468cd377 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -200,6 +200,7 @@ jobs: - name: get release version run: | VERSION=$GITHUB_REF_NAME + VERSION_SHA=$GITHUB_SHA echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Checkout code uses: actions/checkout@v4 @@ -222,5 +223,5 @@ jobs: for asset in ./dist/*; do assets+=("$asset") done - gh release create "$VERSION" --target "$VERSION" -F "./releases/${VERSION}.md" "${assets[@]}" + gh release create "$VERSION" --target "$VERSION_SHA" -F "./releases/${VERSION}.md" "${assets[@]}"