From 42419d2dd271d8b783c9755a7cc82cc0ef663049 Mon Sep 17 00:00:00 2001 From: David Baker Effendi Date: Fri, 24 Nov 2023 21:11:20 +0200 Subject: [PATCH] Only Add Specific Binaries to Release (#4) --- .github/workflows/release.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa29c6e..a3a94cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,16 +44,20 @@ jobs: dotnet publish -c Release -r osx-arm64 -o ./release/macos-arm DotNetAstGen/DotNetAstGen.csproj dotnet publish -c Release -r win-x64 -o ./release/win DotNetAstGen/DotNetAstGen.csproj dotnet publish -c Release -r win-arm -o ./release/win-arm DotNetAstGen/DotNetAstGen.csproj - - name: Make executable + - name: Rename run: | - chmod +x ./release/macos/DotNetAstGen - chmod +x ./release/macos-arm/DotNetAstGen - chmod +x ./release/linux/DotNetAstGen - chmod +x ./release/linux-arm/DotNetAstGen - - name: ZIP Release Directory + mv ./release/linux/DotNetAstGen dotnetastgen-linux + mv ./release/linux-arm/DotNetAstGen dotnetastgen-linux-arm + mv ./release/macos/DotNetAstGen dotnetastgen-macos + mv ./release/macos-arm/DotNetAstGen dotnetastgen-macos-arm + mv ./release/win/DotNetAstGen.exe dotnetastgen-win.exe + mv ./release/win-arm/DotNetAstGen.exe dotnetastgen-win-arm.exe + - name: Make executable run: | - mv ./release DotNetAstGen - zip -r DotNetAstGen.zip ./DotNetAstGen + chmod +x dotnetastgen-linux + chmod +x dotnetastgen-linux-arm + chmod +x dotnetastgen-macos + chmod +x dotnetastgen-macos-arm - name: Set next release version id: taggerFinal uses: anothrNick/github-tag-action@1.61.0 @@ -64,4 +68,10 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.taggerDryRun.outputs.new_tag }} - files: DotNetAstGen.zip \ No newline at end of file + files: | + dotnetastgen-linux + dotnetastgen-linux-arm + dotnetastgen-macos + dotnetastgen-macos-arm + dotnetastgen-win.exe + dotnetastgen-win-arm.exe \ No newline at end of file