diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ef9e48..92f36a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,11 +75,17 @@ jobs: run: | release_name="${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}-${{ matrix.target }}" release_notes="$(sed 's/%/%25/g;s/\r/%0D/g;' ${{ env.PROJECT_NAME }}/doc/release/release-notes-${{ steps.version.outputs.version }}.md | sed ':a;N;$!ba;s/\n/%0A/g')" + release_config="Release" + echo "::set-output name=release_notes::$release_notes" sed -i.bak "s/net6.0<\/TargetFramework>/${{ env.DOTNET_FRAMEWORK }}<\/TargetFramework>/g" ${{ env.PROJECT_PATH }} - dotnet publish ${{ env.PROJECT_PATH }} --framework ${{ env.DOTNET_FRAMEWORK }} --runtime "${{ matrix.target }}" -c Release -p:PublishSingleFile=true --self-contained true -p:PublishReadyToRun=true -p:PublishTrimmed=true -o "$release_name" + if [ "${{ matrix.target }}" == "osx-arm64" ]; then + release_config="Debug" + fi + + dotnet publish ${{ env.PROJECT_PATH }} --framework ${{ env.DOTNET_FRAMEWORK }} --runtime "${{ matrix.target }}" -c "$release_config" -p:PublishSingleFile=true --self-contained true -p:PublishReadyToRun=true -p:PublishTrimmed=true -o "$release_name" if [ "${{ matrix.target }}" == "win-x64" ]; then 7z a -tzip "${release_name}.zip" "./${release_name}/tone.exe"