Skip to content

Commit ec3c506

Browse files
committed
Fix publish workflow by restoring per-RID publish and pack steps
The dotnet-file sync removed explicit dotnet publish/pack in favor of PackOnBuild, which fails for PackAsTool projects with RuntimeIdentifiers because RID-specific outputs are not produced during a plain build.
1 parent 6556a70 commit ec3c506

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.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: refs/tags/${{ github.event.release.tag_name }}
1614
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1715
MSBUILDTERMINALLOGGER: auto
@@ -37,6 +35,15 @@ jobs:
3735
shell: pwsh
3836
run: dnx --yes retest -- --no-build
3937

38+
- name: 🙏 publish
39+
shell: pwsh
40+
run: |
41+
$rids = dotnet msbuild src/go/go.csproj -getproperty:RuntimeIdentifiers
42+
$rids | %{ $_.Split(';') } | %{ $_.Trim() } | ? { $_ } | %{ dotnet publish src/go/go.csproj -r $_ }
43+
44+
- name: 📦 pack
45+
run: dotnet pack src/go/go.csproj --no-build -m:1 -bl:pack.binlog
46+
4047
- name: 🐛 logs
4148
uses: actions/upload-artifact@v4
4249
if: runner.debug && always()

0 commit comments

Comments
 (0)