Skip to content

Commit

Permalink
Only Add Specific Binaries to Release (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi authored Nov 24, 2023
1 parent 9273246 commit 42419d2
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -64,4 +68,10 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.taggerDryRun.outputs.new_tag }}
files: DotNetAstGen.zip
files: |
dotnetastgen-linux
dotnetastgen-linux-arm
dotnetastgen-macos
dotnetastgen-macos-arm
dotnetastgen-win.exe
dotnetastgen-win-arm.exe

0 comments on commit 42419d2

Please sign in to comment.