From 45047bd6bfab0fc55d54f3ca82eb32a59a17c46e Mon Sep 17 00:00:00 2001 From: helto4real Date: Fri, 3 Nov 2023 14:57:44 +0100 Subject: [PATCH] fix docker pre-release and make nuget pre-release push --- .github/workflows/push_docker_prerelease.yml | 1 + .github/workflows/push_nuget_prerelease.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_docker_prerelease.yml b/.github/workflows/push_docker_prerelease.yml index af74656ac..30394923c 100644 --- a/.github/workflows/push_docker_prerelease.yml +++ b/.github/workflows/push_docker_prerelease.yml @@ -8,6 +8,7 @@ on: type: choice description: Pre-release tag required: true + default: "alpha" options: - alpha - beta diff --git a/.github/workflows/push_nuget_prerelease.yml b/.github/workflows/push_nuget_prerelease.yml index 8ab240cb1..911abbc2c 100644 --- a/.github/workflows/push_nuget_prerelease.yml +++ b/.github/workflows/push_nuget_prerelease.yml @@ -52,5 +52,5 @@ jobs: sed -i "/ private const string Version = /c\ private const string Version = \"${{ steps.version.outputs.version }}-${{ github.event.inputs.pre }}-${{ steps.version.outputs.build }}\";" ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs - name: 🎁 Pack run: dotnet pack NetDaemon.sln --configuration Release -p:PackageVersion=${{ steps.version.outputs.version }}-${{ github.event.inputs.pre }}-${{ steps.version.outputs.build }} -p:Version=${{ steps.version.outputs.version }}-${{ github.event.inputs.pre }}-${{ steps.version.outputs.build }} - # - name: 📨 Push to nuget - #run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json + - name: 📨 Push to nuget + run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json