From 84acfc38bed559d691a38a077507a875d3a5c2e1 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:40:49 +0300 Subject: [PATCH] Add dispatchable prerelease workflow --- .github/workflows/main.yml | 2 +- .github/workflows/prerelease.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f328ea0..64423e66 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,4 +15,4 @@ jobs: secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 00000000..77485263 --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,26 @@ +name: prerelease + +on: + workflow_dispatch: + inputs: + package-version-base: + type: string + description: Package version base + required: true + package-version-suffix: + type: string + description: Package version suffix + required: true + +jobs: + prerelease: + uses: Tyrrrz/.github/.github/workflows/nuget.yml@master + with: + windows-only: true + dotnet-version: 7.0.x + package-version: ${{ format('{0}-{1}', inputs.package-version-base, inputs.package-version-suffix) }} + deploy-on-tags-only: false + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}