From d0a78d73f9c9517c415c55b034c2331b34a001b1 Mon Sep 17 00:00:00 2001
From: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
Date: Thu, 8 May 2025 20:51:08 +0300
Subject: [PATCH] [CI] Add nuget beta build support (#3113)
---
.github/workflows/dotnet.yml | 9 ++++++---
Discord.Net.targets | 3 ++-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index c40f7bca..e626394a 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -1,8 +1,5 @@
name: Dotnet Build
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
-
on:
push:
branches: ["dev"]
@@ -35,6 +32,12 @@ jobs:
- name: Is Tag Build
if: startsWith(github.ref, 'refs/tags/')
run: echo "IsTagBuild=true" >> $GITHUB_ENV
+
+ - name: Generate Beta Suffix
+ if: startsWith(github.ref, 'refs/tags/') && contains(github.ref_name, '/')
+ env:
+ REF_NAME: ${{ github.ref_name }}
+ run: echo "Suffix=${REF_NAME##*/}" >> $GITHUB_ENV
- name: Generate Suffix
if: env.IsTagBuild != 'true'
diff --git a/Discord.Net.targets b/Discord.Net.targets
index 37975448..d38d20c1 100644
--- a/Discord.Net.targets
+++ b/Discord.Net.targets
@@ -12,7 +12,8 @@
NUGET_README.md
-
+
+ $(BuildNumber)
false