3 Commits

Author SHA1 Message Date
16fbddcdc8 ci
All checks were successful
CI / build-test (push) Successful in 27s
Release / pack-and-publish (release) Successful in 33s
2025-11-27 11:14:09 +03:00
ec3d8de187 сборкка Common
All checks were successful
CI / build-test (push) Successful in 26s
Release / pack-and-publish (release) Successful in 28s
2025-11-27 11:10:30 +03:00
4f17192c01 выключение генерации пакета
All checks were successful
CI / build-test (push) Successful in 29s
Release / pack-and-publish (release) Successful in 29s
2025-11-27 11:00:34 +03:00
3 changed files with 31 additions and 9 deletions

View File

@@ -19,20 +19,31 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Restore ReleaseUpdater
run: dotnet restore ReleaseUpdater
- name: Set version from tag
id: version
run: |
TAG="${GITHUB_REF_NAME#v}"
echo "PACKAGE_VERSION=$TAG" >> $GITHUB_OUTPUT
- name: Build ReleaseUpdater
run: dotnet build ReleaseUpdater -c Release -p:Version=${{ steps.version.outputs.PACKAGE_VERSION }}
- name: Pack ReleaseUpdater
run: dotnet pack ReleaseUpdater -c Release --no-build -p:PackageVersion=${{ steps.version.outputs.PACKAGE_VERSION }} -o ./artifacts
- name: Replace ProjectReference with PackageReference
run: |
sed -i "s#<ProjectReference Include=\"..\/ReleaseUpdater.Common\/ReleaseUpdater.Common.csproj\" />#<PackageReference Include=\"ReleaseUpdater.Common\" Version=\"${{ steps.version.outputs.PACKAGE_VERSION }}\" />#" ReleaseUpdater/ReleaseUpdater.csproj
- name: Build and Pack projects
run: |
mkdir -p artifacts
for proj in $PROJECTS; do
echo "Restoring $proj..."
dotnet restore $proj
echo "Building $proj..."
dotnet build $proj -c Release -p:Version=${{ steps.version.outputs.PACKAGE_VERSION }}
echo "Packing $proj..."
dotnet pack $proj -c Release --no-build -p:PackageVersion=${{ steps.version.outputs.PACKAGE_VERSION }} -o ./artifacts
done
env:
PROJECTS: |
ReleaseUpdater.Common
ReleaseUpdater
- name: Upload package artifact
uses: actions/upload-artifact@v3

View File

@@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>

View File

@@ -11,7 +11,17 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ReleaseUpdater.Common\ReleaseUpdater.Common.csproj" />
<ProjectReference Include="..\ReleaseUpdater.Common\ReleaseUpdater.Common.csproj"
PrivateAssets="none"
IncludeAssets="all"
/>
</ItemGroup>
<Target Name="CopyProjectReferencesToPackage" AfterTargets="Pack">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)ReleaseUpdater.Common.dll"
TargetPath="lib\net8.0\ReleaseUpdater.Common.dll" />
</ItemGroup>
</Target>
</Project>