From 09a07554a941ab31ebb82ae43d9989527dfef09a Mon Sep 17 00:00:00 2001 From: Devashish Lal Date: Wed, 6 Dec 2023 20:46:01 -0800 Subject: [PATCH] deploy --- .github/workflows/publish.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 519e6dc..d299e23 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,12 +7,6 @@ on: push: branches: - 'main' # Run the workflow when pushing to the main branch - pull_request: - branches: - - '*' # Run the workflow for all pull requests - release: - types: - - published # Run the workflow when a new GitHub release is published env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 @@ -80,10 +74,10 @@ jobs: # run: dotnet test --configuration Release deploy: - # Publish only when creating a GitHub Release + # Publish only when a tag is pushed # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository # You can update this logic if you want to manage releases differently - if: github.event_name == 'release' + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest needs: [ validate_nuget ] #run_test steps: