Skip to content

Commit a6e196b

Browse files
committed
Updated deployment script
1 parent 89db430 commit a6e196b

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ name: .NET
55

66
on:
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

1628
env:
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:

0 commit comments

Comments
 (0)