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
20 changes: 10 additions & 10 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,9 +88,11 @@ jobs:
if: needs.version.outputs.is_release == 'true'
strategy:
matrix:
# 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.Factory/BeyondNetCode.Shell.Factory.csproj
- src/BeyondNetCode.Shell.Factory.Installer/BeyondNetCode.Shell.Factory.Installer.csproj
- BeyondNetCode.Shell.Factory
- BeyondNetCode.Shell.Factory.Installer
steps:
- uses: actions/checkout@v4

Expand All @@ -102,10 +103,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 @@ -148,7 +148,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
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
</PropertyGroup>

<ItemGroup>
<None Include="../../../LICENSE">
<None Include="../LICENSE">
<Pack>True</Pack>
<PackagePath>LICENSE</PackagePath>
<PackagePath>/</PackagePath>
</None>
<None Include="../../../README.md">
<None Include="../README.md">
<Pack>True</Pack>
<PackagePath>README.md</PackagePath>
</None>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v10.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v10.0": {
"BeyondNetCode.Shell.Factory.Installer/1.0.0": {
"dependencies": {
"BeyondNetCode.Shell.Factory": "9.9.9-test"
},
"runtime": {
"BeyondNetCode.Shell.Factory.Installer.dll": {}
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"runtime": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"assemblyVersion": "8.0.0.0",
"fileVersion": "8.0.1024.46610"
}
}
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"assemblyVersion": "8.0.0.0",
"fileVersion": "8.0.1024.46610"
}
}
},
"BeyondNetCode.Shell.Factory/9.9.9-test": {
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
},
"runtime": {
"BeyondNetCode.Shell.Factory.dll": {
"assemblyVersion": "1.0.0.0",
"fileVersion": "1.0.0.0"
}
}
}
}
},
"libraries": {
"BeyondNetCode.Shell.Factory.Installer/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3iE7UF7MQkCv1cxzCahz+Y/guQbTqieyxyaWKhrRO91itI9cOKO76OHeQDahqG4MmW5umr3CcCvGmK92lWNlbg==",
"path": "microsoft.extensions.dependencyinjection.abstractions/8.0.2",
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512"
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-nroMDjS7hNBPtkZqVBbSiQaQjWRDxITI8Y7XnDs97rqG3EbzVTNLZQf7bIeUJcaHOV8bca47s1Uxq94+2oGdxA==",
"path": "microsoft.extensions.logging.abstractions/8.0.2",
"hashPath": "microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512"
},
"BeyondNetCode.Shell.Factory/9.9.9-test": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading