diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index eec8a40..461af94 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,12 +1,11 @@
-name: CI / CD
+name: CI
on:
push:
branches: [main, develop]
+ tags: ['v*']
pull_request:
branches: [main, develop]
- tags:
- - 'v*'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
@@ -59,7 +58,7 @@ jobs:
name: Determine Version
runs-on: ubuntu-latest
needs: build-and-test
- if: github.event_name == 'push' || github.event_name == 'tag'
+ if: github.event_name == 'push'
outputs:
version: ${{ steps.version.outputs.version }}
is_release: ${{ steps.version.outputs.is_release }}
@@ -89,13 +88,15 @@ jobs:
if: needs.version.outputs.is_release == 'true'
strategy:
matrix:
+ # Project folder and assembly name match, so one value drives both the
+ # csproj path and the artifact name (artifact names cannot contain "/").
project:
- - src/BeyondNetCode.Shell.Aop/BeyondNetCode.Shell.Aop.csproj
- - src/BeyondNetCode.Shell.Aop.Aspects/BeyondNetCode.Shell.Aop.Aspects.csproj
- - src/BeyondNetCode.Shell.Aop.Aspects.Logger/BeyondNetCode.Shell.Aop.Aspects.Logger.csproj
- - src/BeyondNetCode.Shell.Aop.Aspects.Logger.Serilog/BeyondNetCode.Shell.Aop.Aspects.Logger.Serilog.csproj
- - src/BeyondNetCode.Shell.Aop.DispatchProxy/BeyondNetCode.Shell.Aop.DispatchProxy.csproj
- - src/BeyondNetCode.Shell.Aop.DI/BeyondNetCode.Shell.Aop.DI.csproj
+ - BeyondNetCode.Shell.Aop
+ - BeyondNetCode.Shell.Aop.Aspects
+ - BeyondNetCode.Shell.Aop.Aspects.Logger
+ - BeyondNetCode.Shell.Aop.Aspects.Logger.Serilog
+ - BeyondNetCode.Shell.Aop.DispatchProxy
+ - BeyondNetCode.Shell.Aop.DI
steps:
- uses: actions/checkout@v4
@@ -106,10 +107,9 @@ jobs:
- name: Pack
run: |
- dotnet pack "${{ matrix.project }}" \
+ dotnet pack "${{ matrix.project }}/${{ matrix.project }}.csproj" \
-c Release \
- --version:${{ needs.version.outputs.version }} \
- --no-build \
+ -p:PackageVersion=${{ needs.version.outputs.version }} \
-p:PackageOutputPath=${{ github.workspace }}/nupkgs
- name: Upload artifacts
@@ -152,7 +152,7 @@ jobs:
release:
name: Create GitHub Release
runs-on: ubuntu-latest
- needs: [version]
+ needs: [version, publish]
if: needs.version.outputs.is_release == 'true'
steps:
- uses: actions/checkout@v4
diff --git a/README.md b/README.md
index 376083a..547ef73 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
-
+