Added build-config

This commit is contained in:
Darth Affe 2024-07-20 23:37:34 +02:00
parent 60d24e7d0d
commit 15981f82d6
4 changed files with 64 additions and 9 deletions

55
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: release
on:
workflow_dispatch:
inputs:
version:
description: 'version'
required: true
type: string
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore HPPH
- name: Build
run: dotnet build HPPH --no-restore --configuration Release /p:Version=${{ github.event.inputs.version }}
- name: Test
run: dotnet test HPPH --no-build --verbosity normal --configuration Release
- name: Upload Nuget Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: HPPH-Nuget
path: HPPH\bin\Release\*.nupkg
if-no-files-found: error
- name: List files
run: tree
- name: Release
uses: softprops/action-gh-release@v2.0.4
with:
tag_name: ${{ github.event.inputs.version }}
generate_release_notes: true
files: HPPH/bin/Release/net8.0/*.dll
- name: Nuget Push
id: nuget_push
run: dotnet nuget push **\*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

View File

@ -30,9 +30,9 @@
<PackageReleaseNotes> <PackageReleaseNotes>
</PackageReleaseNotes> </PackageReleaseNotes>
<Version>1.0.0</Version> <Version>0.0.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion> <AssemblyVersion>0.0.1</AssemblyVersion>
<FileVersion>1.0.0</FileVersion> <FileVersion>0.0.1</FileVersion>
<OutputPath>..\bin\</OutputPath> <OutputPath>..\bin\</OutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>

View File

@ -30,9 +30,9 @@
<PackageReleaseNotes> <PackageReleaseNotes>
</PackageReleaseNotes> </PackageReleaseNotes>
<Version>1.0.0</Version> <Version>0.0.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion> <AssemblyVersion>0.0.1</AssemblyVersion>
<FileVersion>1.0.0</FileVersion> <FileVersion>0.0.1</FileVersion>
<OutputPath>..\bin\</OutputPath> <OutputPath>..\bin\</OutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>

View File

@ -32,9 +32,9 @@
<PackageReleaseNotes> <PackageReleaseNotes>
</PackageReleaseNotes> </PackageReleaseNotes>
<Version>1.0.0</Version> <Version>0.0.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion> <AssemblyVersion>0.0.1</AssemblyVersion>
<FileVersion>1.0.0</FileVersion> <FileVersion>0.0.1</FileVersion>
<OutputPath>..\bin\</OutputPath> <OutputPath>..\bin\</OutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>