Skip to content

Commit

Permalink
Make script manually-running, publish only from release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-abblix committed Jul 9, 2024
1 parent b292a55 commit 7272331
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: CI/CD with Auto Versioning
name: CI/CD Pipeline for Auto Versioning, Building, and Publishing on Release Branch

on:
workflow_dispatch: # Manual trigger
release:
types: [published] # Trigger on published releases

jobs:
get_version:
Expand Down Expand Up @@ -52,6 +50,7 @@ jobs:

publish:
needs: build
if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ubuntu-latest
steps:
- name: Download NuGet packages artifacts
Expand Down

0 comments on commit 7272331

Please sign in to comment.