From 4f3c10d6a02320bd8fb3893e8f74bd514f4040ec Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Fri, 3 Nov 2023 13:04:21 +0900 Subject: [PATCH] ci: fix a bug that prebuilt binaries aren't published to GitHub Releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit omekasy v1.2.1 and v1.2.2 don't have prebuilt binaries. https://github.com/ikanago/omekasy/releases/tag/v1.2.2 Prebuilt binaries were built in CI, but they weren't published because the input of softprops/action-gh-release `files` is empty. https://github.com/ikanago/omekasy/actions/runs/6284001639/job/17064954741 ``` Run softprops/action-gh-release@v1 with: token: *** env: PROJECT_NAME: omekasy PKG_PATH: omekasy-v1.2.2-x86_64-unknown-linux-gnu.tar.gz GITHUB_TOKEN: *** 👩‍🏭 Creating new GitHub release for tag v1.2.2... 🤔 not include valid file. 🎉 Release ready at https://github.com/ikanago/omekasy/releases/tag/v1.2.2 ``` --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c12b85a..98c83b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: PKG_SUFFIX=".tar.gz" ; case "${{ matrix.job.target }}" in *-pc-windows-*) PKG_SUFFIX=".zip" ;; esac; PKG_BASENAME="${PROJECT_NAME}-v${{ steps.project_version.outputs.PROJECT_VERSION }}-${{ matrix.job.target }}" PKG_PATH="${PKG_BASENAME}${PKG_SUFFIX}" - echo "PKG_PATH=${PKG_PATH}" >> "${GITHUB_ENV}" + echo "PKG_PATH=${PKG_PATH}" >> "${GITHUB_OUTPUT}" PKG_DIR="archive" mkdir -p "${PKG_DIR}"