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[@]}"