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
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="https://img.shields.io/badge/NuGet-BeyondNetCode-blue" alt="NuGet" />
</a>
<a href="https://github.com/beyondnetcode/Shell.Aop/actions">
<img src="https://github.com/beyondnetcode/Shell.Aop/workflows/CI%20/%20CD/badge.svg" alt="Build" />
<img src="https://github.com/beyondnetcode/Shell.Aop/actions/workflows/build.yml/badge.svg" alt="Build" />
</a>
</p>
</div>
Expand Down
Loading