From 5d830faeebe015674605376cca1907f8e4dfd9cd Mon Sep 17 00:00:00 2001 From: Lapis <45414333+Lapis256@users.noreply.github.com> Date: Wed, 24 Jul 2024 05:37:56 +0900 Subject: [PATCH] Fix release.yml --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4ad7a5..a9b90b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,9 +17,11 @@ jobs: - os: ubuntu-latest target: x86_64-unknown-linux-gnu glibc: 2.17 + extension: "" - os: windows-latest target: x86_64-pc-windows-msvc glibc: -1 + extension: .exe runs-on: ${{ matrix.os }} steps: @@ -58,7 +60,7 @@ jobs: - name: Rename artifacts shell: bash run: | - mv target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}{,-${{ github.ref_name }}-${{ matrix.job.target }}${{ matrix.job.extension }}} + mv target/${{ matrix.target }}/release/${{ env.PROJECT_NAME }}{,-${{ github.ref_name }}-${{ matrix.target }}${{ matrix.extension }}} # ビルド済みバイナリをReleasesに配置 - name: Release @@ -67,4 +69,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: | - target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}-${{ github.ref_name }}-${{ matrix.job.target }}${{ matrix.job.extension }} + target/${{ matrix.target }}/release/${{ env.PROJECT_NAME }}-${{ github.ref_name }}-${{ matrix.target }}${{ matrix.extension }}