|
1 | 1 | name: 'Build and Deploy' |
2 | 2 |
|
3 | 3 | on: |
| 4 | + workflow_dispatch: |
4 | 5 | push: |
5 | 6 | branches: main |
6 | 7 |
|
7 | 8 | jobs: |
8 | 9 | Release-Build-and-Deploy: |
9 | | - runs-on: windows-2019 |
| 10 | + runs-on: windows-latest |
10 | 11 |
|
11 | 12 | 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] |
23 | 15 |
|
| 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 | + |
24 | 22 | - name: 2. Bootstrapping NuGet Installer |
25 | | - uses: nuget/setup-nuget@v1 |
| 23 | + uses: nuget/setup-nuget@v1.1.1 |
26 | 24 |
|
27 | 25 | - name: 3. Restoring Packages |
28 | 26 | run: nuget restore ./src/CodingWithCalvin.VSKraken.sln |
|
31 | 29 | run: msbuild './src/CodingWithCalvin.VSKraken/CodingWithCalvin.VSKraken.csproj' /p:configuration='Release' /p:platform='x64' |
32 | 30 |
|
33 | 31 | - name: 5. Publishing x64 Build Artifact |
34 | | - uses: actions/upload-artifact@v2 |
| 32 | + uses: actions/upload-artifact@v3 |
35 | 33 | with: |
36 | 34 | path: '${{ github.workspace }}\src\CodingWithCalvin.VSKraken\bin\x64\Release\CodingWithCalvin.VSKraken.vsix' |
37 | 35 | name: latest-x64 |
0 commit comments