From a2022a2f1672befdfa159ad9dfac0687d2baa9ce Mon Sep 17 00:00:00 2001
From: Med <45147847+kitsumed@users.noreply.github.com>
Date: Mon, 3 Feb 2025 15:22:51 -0500
Subject: [PATCH] Created nuget build workflow (#312)
---
.github/workflows/nuget_build_release.yml | 39 ++++++++++++++++++++
ATL/ATL.csproj | 45 ++++++++++++++++++-----
2 files changed, 75 insertions(+), 9 deletions(-)
create mode 100644 .github/workflows/nuget_build_release.yml
diff --git a/.github/workflows/nuget_build_release.yml b/.github/workflows/nuget_build_release.yml
new file mode 100644
index 00000000..54ddb583
--- /dev/null
+++ b/.github/workflows/nuget_build_release.yml
@@ -0,0 +1,39 @@
+name: "Publish to NuGet Gallery"
+
+on:
+ release:
+ types: [published]
+
+env:
+ PROJECT_PATH: ATL/ATL.csproj
+ PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/build-output
+ NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json"
+
+jobs:
+ publish:
+ name: "Publish to NuGet Gallery"
+ runs-on: "ubuntu-latest"
+ steps:
+ - name: "Checkout"
+ uses: actions/checkout@v4
+
+ - name: "Install Dotnet"
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: "8.0.x"
+
+ - name: "Create NuGet release note file"
+ run: |
+ echo "${{ github.event.release.body }}" > PACKAGE-RELEASE-NOTES.txt
+
+ - name: "Restore packages"
+ run: dotnet restore "${{ env.PROJECT_PATH }}"
+
+ - name: "Build project"
+ run: dotnet build "${{ env.PROJECT_PATH }}" --no-restore --configuration Release -p:Version=${{ github.event.release.tag_name }} -p:FileVersion=${{ github.event.release.tag_name }}
+
+ - name: "Pack project"
+ run: dotnet pack "${{ env.PROJECT_PATH }}" -p:PackageVersion=${{ github.event.release.tag_name }} --no-restore --no-build --configuration Release --output "${{ env.PACKAGE_OUTPUT_DIRECTORY }}"
+
+ - name: "Push package"
+ run: dotnet nuget push "${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg" --source ${{ env.NUGET_SOURCE_URL }} --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
diff --git a/ATL/ATL.csproj b/ATL/ATL.csproj
index eaa3df7d..2cda14f6 100644
--- a/ATL/ATL.csproj
+++ b/ATL/ATL.csproj
@@ -8,29 +8,46 @@
z440.atl.core
6.16.0
false
- audio metadata tag mp3 mp4 aac id3v2 ogg vorbis opus flac playlist cue
-
+ audio;metadata;tag;mp3;mp4;aac;id3v2;ogg;vorbis;opus;flac;playlist;cue
https://github.com/Zeugma440/atldotnet
+ README.md
+ git
+ https://github.com/Zeugma440/atldotnet.git
Zeugma440
Audio Tools Library (ATL) for .NET
- 6.16.0.0
6.16.0
false
-
- full
- true
-
true
MIT
-
-
+ Zeugma440
+
+
+
+
+ true
+
+
+
+ embedded
+ True
+
+
+
+
+
+
+
+ @(ReleaseNoteLines, '%0a')
+
+
+
@@ -68,4 +85,14 @@
Resources.Designer.cs
+
+
+
+
+
+
+
+ PreserveNewest
+
+