Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,23 @@ jobs:
run: dotnet build ZeroAlloc.Authorization.slnx --configuration Release -p:Version=${{ needs.release-please.outputs.version }}

- name: Test
run: dotnet test tests/ZeroAlloc.Authorization.Tests/ZeroAlloc.Authorization.Tests.csproj --configuration Release --no-build --verbosity normal
run: dotnet test --configuration Release --no-build --verbosity normal

- name: Pack
run: dotnet pack src/ZeroAlloc.Authorization/ZeroAlloc.Authorization.csproj --configuration Release --no-build --output ./artifacts -p:Version=${{ needs.release-please.outputs.version }}
- name: Pack every src/* csproj
env:
VERSION: ${{ needs.release-please.outputs.version }}
# Walk src/*/*.csproj — pack every project. dotnet pack on a project
# with IsPackable=false produces no .nupkg, so internal / non-shippable
# projects are skipped automatically. Mirrors publish-from-manifest.yml
# so future sub-package additions don't silently miss publish.
run: |
mkdir -p ./artifacts
for csproj in src/*/*.csproj; do
echo "Packing $csproj at version $VERSION"
dotnet pack "$csproj" --configuration Release --no-build \
--output ./artifacts -p:Version="$VERSION"
done
ls -la ./artifacts

- name: Push to NuGet
run: dotnet nuget push ./artifacts/*nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
Expand Down
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"packages": {
".": {
"release-type": "simple",
"release-as": "2.0.2",
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
Expand Down
Loading