Skip to content

Commit 24fa1d3

Browse files
committed
Ci: Publish core and governance packages
Added - Packaging workflow support for both ModularityKit.Mutator and ModularityKit.Mutator.Governance - Shared artifact naming for release and attestation workflows Changed - Release workflows now restore the solution before packing packages - Release-drafter and attestation download the combined package artifact instead of only the core nupkg Result Release automation now publishes both NuGet packages consistently so core and governance assets flow through the same artifact, attestation, and draft-release pipeline.
1 parent c8fd458 commit 24fa1d3

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/publish-artifacts.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
package:
16-
name: Pack library
16+
name: Pack packages
1717
runs-on: ubuntu-latest
1818

1919
steps:
@@ -26,7 +26,7 @@ jobs:
2626
dotnet-version: 10.0.x
2727

2828
- name: Restore
29-
run: dotnet restore src/ModularityKit.Mutator.csproj
29+
run: dotnet restore ModularityKit.Mutator.slnx
3030

3131
- name: Resolve package version
3232
id: version
@@ -44,16 +44,24 @@ jobs:
4444
fi
4545
echo "package_version=$version" >> "$GITHUB_OUTPUT"
4646
47-
- name: Pack package
47+
- name: Pack core package
4848
run: >
4949
dotnet pack src/ModularityKit.Mutator.csproj
5050
-c Release
5151
--no-restore
5252
-o nupkg
5353
-p:PackageVersion=${{ steps.version.outputs.package_version }}
5454
55-
- name: Upload package
55+
- name: Pack governance package
56+
run: >
57+
dotnet pack src/ModularityKit.Mutator.Governance.csproj
58+
-c Release
59+
--no-restore
60+
-o nupkg
61+
-p:PackageVersion=${{ steps.version.outputs.package_version }}
62+
63+
- name: Upload packages
5664
uses: actions/upload-artifact@v4
5765
with:
58-
name: ModularityKit.Mutator-nupkg
66+
name: ModularityKit-packages
5967
path: nupkg/*.nupkg

.github/workflows/publish-attested.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Download published artifacts
2626
uses: actions/download-artifact@v6
2727
with:
28-
pattern: ModularityKit.Mutator-nupkg
28+
pattern: ModularityKit-packages
2929
path: dist
3030
merge-multiple: true
3131

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Download published artifacts
5353
uses: actions/download-artifact@v6
5454
with:
55-
pattern: ModularityKit.Mutator-nupkg
55+
pattern: ModularityKit-packages
5656
path: dist
5757
merge-multiple: true
5858

0 commit comments

Comments
 (0)