-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only Add Specific Binaries to Release (#4)
- Loading branch information
1 parent
9273246
commit 42419d2
Showing
1 changed file
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
@@ -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 |