File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,25 @@ name: .NET
55
66on :
77 workflow_dispatch :
8+ inputs :
9+ is_release :
10+ description : ' Should the deploy action be ran'
11+ required : false
12+ default : false
13+ type : boolean
814 push :
915 branches : [ "main" ]
16+ paths-ignore :
17+ - ' **/Readme.md'
18+ - ' **/GifInstruction/'
19+ - ' **/.gitignore'
20+ - ' **/.editorconfig'
21+ - ' workflows/dotnet.yml'
1022 pull_request :
1123 branches : [ "main" ]
12- # release:
13- # types:
14- # - published # Run the workflow when a new GitHub release is published
24+ release :
25+ types :
26+ - published # Run the workflow when a new GitHub release is published
1527
1628env :
1729 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
@@ -74,11 +86,12 @@ jobs:
7486 name : " CodeDocumentor.vsix"
7587 path : CodeDocumentor\bin\Release\CodeDocumentor.vsix
7688
89+ # This is not enabled because it needs a publish manifest which is the form when you upload a VSIX
7790 # deploy:
7891 # # Publish only when creating a GitHub Release
7992 # # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
8093 # # You can update this logic if you want to manage releases differently
81- # if: github.event_name == 'release'
94+ # if: github.event_name == 'release' || github.event.inputs.is_release == true
8295 # runs-on: [windows-latest]
8396 # needs: [ build ]
8497 # steps:
You can’t perform that action at this time.
0 commit comments