|
8 | 8 | jobs: |
9 | 9 | publish-nupkg: |
10 | 10 | name: Publish NuGet Package |
11 | | - |
| 11 | + |
12 | 12 | runs-on: windows-latest |
13 | 13 |
|
14 | 14 | steps: |
15 | 15 | - name: Extract tag name |
16 | 16 | id: tag_name |
17 | | - uses: actions/github-script@v3.0.0 |
| 17 | + uses: actions/github-script@v7.0.0 |
18 | 18 | with: |
19 | 19 | github-token: ${{ secrets.GITHUB_TOKEN }} |
20 | 20 | result-encoding: string |
21 | 21 | script: | |
22 | 22 | return context.payload.ref.replace(/^refs\/tags\//, ''); |
23 | 23 |
|
24 | | - - uses: actions/checkout@v2 |
25 | | - |
| 24 | + - uses: actions/checkout@v4 |
| 25 | + |
26 | 26 | - name: Setup .NET Core |
27 | | - uses: actions/setup-dotnet@v1 |
| 27 | + uses: actions/setup-dotnet@v4 |
28 | 28 | with: |
29 | 29 | dotnet-version: 8.0.300 |
30 | | - |
| 30 | + |
31 | 31 | - name: Create NuGet Packages |
32 | 32 | run: dotnet pack src --configuration Release /p:CommitID=${{ github.sha }} /p:TagVersion=${{ steps.tag_name.outputs.result }} |
33 | 33 |
|
34 | 34 | - name: Upload WTG.Analyzers nupkg |
35 | | - uses: actions/upload-artifact@v2 |
| 35 | + uses: actions/upload-artifact@v4 |
36 | 36 | with: |
37 | 37 | name: WTG.Analyzers.${{ steps.tag_name.outputs.result }}.nupkg |
38 | 38 | path: 'bin/WTG.Analyzers.${{ steps.tag_name.outputs.result }}.nupkg' |
39 | 39 |
|
40 | 40 | - name: Upload WTG.Analyzers.Utils nupkg |
41 | | - uses: actions/upload-artifact@v2 |
| 41 | + uses: actions/upload-artifact@v4 |
42 | 42 | with: |
43 | 43 | name: WTG.Analyzers.Utils.${{ steps.tag_name.outputs.result }}.nupkg |
44 | 44 | path: 'bin/WTG.Analyzers.Utils.${{ steps.tag_name.outputs.result }}.nupkg' |
45 | 45 |
|
46 | 46 | - name: Upload WTG.Analyzers.TestFramework nupkg |
47 | | - uses: actions/upload-artifact@v2 |
| 47 | + uses: actions/upload-artifact@v4 |
48 | 48 | with: |
49 | 49 | name: WTG.Analyzers.TestFramework.${{ steps.tag_name.outputs.result }}.nupkg |
50 | 50 | path: 'bin/WTG.Analyzers.TestFramework.${{ steps.tag_name.outputs.result }}.nupkg' |
|
0 commit comments