Update workflow;
Some checks failed
Publish NuGet Packages / publish (push) Failing after 1m41s

This commit is contained in:
2025-11-04 18:32:44 +09:00
parent b32d4ca1b7
commit 36b8bd06d5
6 changed files with 32 additions and 22 deletions

View File

@@ -2,8 +2,12 @@ name: Publish NuGet Packages
on: on:
push: push:
tags: branches:
- 'v*' # Trigger only on semantic version tags - main
pull_request:
branches:
- main
workflow_dispatch:
jobs: jobs:
publish: publish:
@@ -26,9 +30,8 @@ jobs:
- name: Pack all projects - name: Pack all projects
run: | run: |
set -e
for projfile in $(find . -name "*.csproj"); do for projfile in $(find . -name "*.csproj"); do
if grep -q "<IsPackable>True</IsPackable>" "$projfile"; then if grep -q "<GeneratePackageOnBuild>True</GeneratePackageOnBuild>" "$projfile"; then
echo "Packing $projfile..." echo "Packing $projfile..."
if ! dotnet pack "$projfile" -c Release -o ./artifacts; then if ! dotnet pack "$projfile" -c Release -o ./artifacts; then
echo "Failed to pack $projfile" echo "Failed to pack $projfile"
@@ -40,10 +43,9 @@ jobs:
env: env:
NUGET_API_KEY: ${{ secrets.NUGET_TOKEN }} NUGET_API_KEY: ${{ secrets.NUGET_TOKEN }}
run: | run: |
set -x
set +e set +e
for projfile in $(find . -name "*.csproj"); do for projfile in $(find . -name "*.csproj"); do
if grep -q "<IsPackable>True</IsPackable>" "$projfile"; then if grep -q "<GeneratePackageOnBuild>True</GeneratePackageOnBuild>" "$projfile"; then
projname=$(basename "$projfile" .csproj) projname=$(basename "$projfile" .csproj)
echo "Checking $projname..." echo "Checking $projname..."
pkg=$(find ./artifacts -maxdepth 1 -type f \ pkg=$(find ./artifacts -maxdepth 1 -type f \

View File

@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks></TargetFrameworks> <TargetFrameworks></TargetFrameworks>
<PackageLicenseUrl>Public Domain</PackageLicenseUrl> <PackageLicenseUrl>Public Domain</PackageLicenseUrl>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<IsPackable>True</IsPackable> <Authors>Misaki</Authors>
</PropertyGroup> <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</PackageProjectUrl>
<PropertyGroup Condition="'$(Configuration)'=='Release'"> <RepositoryUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -6,10 +6,13 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<IsPackable>True</IsPackable>
<Version>1.1.0</Version> <Version>1.1.0</Version>
<AssemblyVersion>1.1.0</AssemblyVersion> <AssemblyVersion>1.1.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion> <FileVersion>1.1.0</FileVersion>
<Authors>Misaki</Authors>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</PackageProjectUrl>
<RepositoryUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</RepositoryUrl>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -5,7 +5,10 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<IsPackable>True</IsPackable> <Authors>Misaki</Authors>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</PackageProjectUrl>
<RepositoryUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</RepositoryUrl>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -5,11 +5,11 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Title>$(AssemblyName)</Title>
<Authors>Misaki</Authors> <Authors>Misaki</Authors>
<IsPackable>True</IsPackable> <Version>1.2.5</Version>
<Version>1.2.0</Version>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</PackageProjectUrl>
<RepositoryUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</RepositoryUrl>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -4,8 +4,11 @@
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<IsPackable>True</IsPackable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>Misaki</Authors>
<PackageProjectUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</PackageProjectUrl>
<RepositoryUrl>https://git.personalnas.com/Misaki/Misaki.HighPerformance.git</RepositoryUrl>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">