Skip to content

Commit 2ab4eec

Browse files
committed
Update release workflows for simplified publish and artifact handling
Removes explicit build steps and '--no-build' flag from publish commands in platform-specific workflows, streamlining the process. In the main release workflow, enables merging of multiple artifacts and restricts release files to .zip and .tar.gz formats for improved clarity and consistency.
1 parent 3950aeb commit 2ab4eec

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

.github/workflows/release-linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ jobs:
2020
- name: Restore dependencies
2121
run: dotnet restore Motely/Motely.csproj
2222

23-
- name: Build
24-
run: dotnet build Motely/Motely.csproj --configuration Release --no-restore
25-
2623
- name: Publish
27-
run: dotnet publish Motely/Motely.csproj -c Release -r linux-x64 -f net10.0 --no-build -o publish/linux-x64
24+
run: dotnet publish Motely/Motely.csproj -c Release -r linux-x64 -f net10.0 -o publish/linux-x64
2825

2926
- name: Package TAR.GZ
3027
run: |

.github/workflows/release-macos.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ jobs:
2020
- name: Restore dependencies
2121
run: dotnet restore Motely/Motely.csproj
2222

23-
- name: Build
24-
run: dotnet build Motely/Motely.csproj --configuration Release --no-restore
25-
2623
- name: Publish
27-
run: dotnet publish Motely/Motely.csproj -c Release -r osx-x64 -f net10.0 --no-build -o publish/osx-x64
24+
run: dotnet publish Motely/Motely.csproj -c Release -r osx-x64 -f net10.0 -o publish/osx-x64
2825

2926
- name: Package TAR.GZ
3027
run: |

.github/workflows/release-windows.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ jobs:
2020
- name: Restore dependencies
2121
run: dotnet restore Motely/Motely.csproj
2222

23-
- name: Build
24-
run: dotnet build Motely/Motely.csproj --configuration Release --no-restore
25-
2623
- name: Publish
27-
run: dotnet publish Motely/Motely.csproj -c Release -r win-x64 -f net10.0 --no-build -o publish/win-x64
24+
run: dotnet publish Motely/Motely.csproj -c Release -r win-x64 -f net10.0 -o publish/win-x64
2825

2926
- name: Package ZIP
3027
run: |

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ jobs:
2626
uses: actions/download-artifact@v4
2727
with:
2828
path: artifacts
29+
merge-multiple: true
2930

3031
- name: Display Artifact Structure
3132
run: ls -R artifacts
3233

3334
- name: Create GitHub Release
3435
uses: softprops/action-gh-release@v1
3536
with:
36-
files: artifacts/**/*
37+
files: |
38+
artifacts/*.zip
39+
artifacts/*.tar.gz
3740
draft: false
3841
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-RC') }}
3942
generate_release_notes: true

0 commit comments

Comments
 (0)