From 5b0594ca3eae4a998cac2157e90494c55ad104a9 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Mon, 25 Nov 2024 17:32:47 +0330 Subject: [PATCH] Update Workflow --- .../workflows/{dotnet-release.yml => publish-release.yml} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename .github/workflows/{dotnet-release.yml => publish-release.yml} (97%) diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/publish-release.yml similarity index 97% rename from .github/workflows/dotnet-release.yml rename to .github/workflows/publish-release.yml index 1bfcf2e..e397a77 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/publish-release.yml @@ -1,6 +1,9 @@ -name: GitHub Release Publisher +name: Publish Release on: + push: + branches: + - main workflow_dispatch: permissions: @@ -38,6 +41,7 @@ env: jobs: build: runs-on: windows-latest + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' outputs: # For accessing them from 'release' job app-version: ${{ steps.get-version.outputs.version }} IS_PRE_RELEASE: ${{ env.IS_PRE_RELEASE }} @@ -116,6 +120,7 @@ jobs: release: needs: build + if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest env: # Read some variables from the 'build' job