Skip to content

Commit 103d0f0

Browse files
committed
Publish each runtime before pack
1 parent 2cc28f2 commit 103d0f0

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jobs:
7474
dotnet tool update -g dotnet-retest
7575
dotnet retest -- --no-build
7676
77+
- name: 🙏 publish
78+
shell: pwsh
79+
run: |
80+
$rids = dotnet msbuild src/runfile/runfile.csproj -getproperty:RuntimeIdentifiers
81+
$rids | %{ $_.Split(';') } | %{ $_.Trim() } | ? { $_ } | %{ dotnet publish -r $_ }
82+
7783
- name: 📦 pack
7884
run: dotnet pack --no-build -m:1 -bl:pack.binlog
7985

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13-
PackOnBuild: true
14-
GeneratePackageOnBuild: true
1513
VersionLabel: ${{ github.ref }}
1614
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1715
MSBUILDTERMINALLOGGER: auto
@@ -38,6 +36,15 @@ jobs:
3836
dotnet tool update -g dotnet-retest
3937
dotnet retest -- --no-build
4038
39+
- name: 🙏 publish
40+
shell: pwsh
41+
run: |
42+
$rids = dotnet msbuild src/runfile/runfile.csproj -getproperty:RuntimeIdentifiers
43+
$rids | %{ $_.Split(';') } | %{ $_.Trim() } | ? { $_ } | %{ dotnet publish -r $_ }
44+
45+
- name: 📦 pack
46+
run: dotnet pack --no-build -m:1 -bl:pack.binlog
47+
4148
- name: 🐛 logs
4249
uses: actions/upload-artifact@v4
4350
if: runner.debug && always()

0 commit comments

Comments
 (0)