Skip to content

Commit 2fe693f

Browse files
committed
Update workflows
1 parent 78df0c8 commit 2fe693f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
name: 'Build and Deploy'
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: main
67

78
jobs:
89
Release-Build-and-Deploy:
9-
runs-on: windows-2019
10+
runs-on: windows-latest
1011

1112
steps:
12-
- uses: actions/checkout@v2
13-
- uses: microsoft/[email protected]
14-
15-
- name: 1. Increment Version
16-
run: |
17-
(new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/CalvinAllen/devops-scripts/master/gh-actions-set-vsix-version.ps1") | iex
18-
Vsix-IncrementVersion `
19-
-BuildNumber ${{ github.run_number }} `
20-
-manifestFile './src/CodingWithCalvin.VSKraken/source.extension.vsixmanifest' `
21-
-extensionSourceFile './src/CodingWithCalvin.VSKraken/source.extension.cs'
22-
shell: powershell
13+
- uses: actions/checkout@v3
14+
- uses: microsoft/[email protected]
2315

16+
- name: 1. Versioning Release
17+
uses: CalvinAllen/action-vs-vsix-versioner@v1
18+
with:
19+
extension-manifest-file: './src/CodingWithCalvin.VSKraken/source.extension.vsixmanifest'
20+
extension-source-file: './src/CodingWithCalvin.VSKraken/source.extension.cs'
21+
2422
- name: 2. Bootstrapping NuGet Installer
25-
uses: nuget/setup-nuget@v1
23+
uses: nuget/setup-nuget@v1.1.1
2624

2725
- name: 3. Restoring Packages
2826
run: nuget restore ./src/CodingWithCalvin.VSKraken.sln
@@ -31,7 +29,7 @@ jobs:
3129
run: msbuild './src/CodingWithCalvin.VSKraken/CodingWithCalvin.VSKraken.csproj' /p:configuration='Release' /p:platform='x64'
3230

3331
- name: 5. Publishing x64 Build Artifact
34-
uses: actions/upload-artifact@v2
32+
uses: actions/upload-artifact@v3
3533
with:
3634
path: '${{ github.workspace }}\src\CodingWithCalvin.VSKraken\bin\x64\Release\CodingWithCalvin.VSKraken.vsix'
3735
name: latest-x64

0 commit comments

Comments
 (0)