From 473d6d49d54ba81000c253f0159a0e816b3aaabf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 9 Sep 2024 10:22:37 -0400 Subject: [PATCH] Properly name tarball --- .forgejo/workflows/generate-tarball.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index 2c172fa8a..bfa6a505d 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -24,13 +24,13 @@ jobs: run: | sed 's||' -i src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets export _cli_root=/usr/lib/dotnet - echo "Building dotnet-$CI_COMMIT_TAG tarball" - _InitializeDotNetCli="$_cli_root" DOTNET_INSTALL_DIR="$_cli_root" DotNetBuildFromSource=true ./build.sh /p:ArcadeBuildTarball=true /p:EnableSourceLink=false /p:CheckEolTargetFramework=false /p:TarballDir=$(pwd)/dotnet-$CI_COMMIT_TAG /p:TarballFilePath=$(pwd)/dotnet-$CI_COMMIT_TAG.tar - echo "Compressing dotnet-$CI_COMMIT_TAG.tar.xz" - xz -T0 -9 -vv -e -c > ./dotnet-$CI_COMMIT_TAG.tar.xz < ./dotnet-$CI_COMMIT_TAG.tar + echo "Building dotnet-${{ inputs.ref_name }} tarball" + _InitializeDotNetCli="$_cli_root" DOTNET_INSTALL_DIR="$_cli_root" DotNetBuildFromSource=true ./build.sh /p:ArcadeBuildTarball=true /p:EnableSourceLink=false /p:CheckEolTargetFramework=false /p:TarballDir=$(pwd)/dotnet-${{ inputs.ref_name }} /p:TarballFilePath=$(pwd)/dotnet-${{ inputs.ref_name }}.tar + echo "Compressing dotnet-${{ inputs.ref_name }}.tar.xz" + xz -T0 -9 -vv -e -c > ./dotnet-${{ inputs.ref_name }}.tar.xz < ./dotnet-${{ inputs.ref_name }}.tar echo "Generating sha512sum and sha256sum" - sha512sum dotnet-$CI_COMMIT_TAG.tar.xz > dotnet-$CI_COMMIT_TAG.tar.xz.sha512sum - sha256sum dotnet-$CI_COMMIT_TAG.tar.xz > dotnet-$CI_COMMIT_TAG.tar.xz.sha256sum + sha512sum dotnet-${{ inputs.ref_name }}.tar.xz > dotnet-${{ inputs.ref_name }}.tar.xz.sha512sum + sha256sum dotnet-${{ inputs.ref_name }}.tar.xz > dotnet-${{ inputs.ref_name }}.tar.xz.sha256sum - name: Package upload uses: forgejo/upload-artifact@v3 with: