|
5 | 5 | types: [closed] |
6 | 6 |
|
7 | 7 | env: |
8 | | - PROJECT_PATH: 'SentimentAnalyzer/SentimentAnalyzer.csproj' |
9 | | - PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output |
10 | | - NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json' |
| 8 | + PROJECT_PATH: "SentimentAnalyzer/SentimentAnalyzer.csproj" |
| 9 | + PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/output |
| 10 | + NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json" |
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | merge-PR: |
14 | 14 | if: github.event.pull_request.merged == true |
15 | | - runs-on: 'windows-latest' |
| 15 | + runs-on: "ubuntu-latest" |
16 | 16 | steps: |
17 | | - - name: 'Checkout' |
18 | | - uses: actions/checkout@v2 |
| 17 | + - name: "Checkout" |
| 18 | + uses: actions/checkout@v4 |
19 | 19 |
|
20 | | - - name: 'Install dotnet' |
21 | | - uses: actions/setup-dotnet@v1 |
22 | | - with: |
23 | | - dotnet-version: '3.1.x' |
| 20 | + - name: "Install dotnet" |
| 21 | + uses: actions/setup-dotnet@v4 |
| 22 | + with: |
| 23 | + dotnet-version: "10.0.x" |
24 | 24 |
|
25 | | - - name: 'Restore packages' |
26 | | - run: dotnet restore ${{ env.PROJECT_PATH }} |
| 25 | + - name: "Restore packages" |
| 26 | + run: dotnet restore ${{ env.PROJECT_PATH }} |
27 | 27 |
|
28 | | - - name: 'Build project' |
29 | | - run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release |
| 28 | + - name: "Build project" |
| 29 | + run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release |
30 | 30 |
|
31 | | - - name: 'Pack project' |
32 | | - run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
| 31 | + - name: "Pack project" |
| 32 | + run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
33 | 33 |
|
34 | | - - name: 'Push package' |
35 | | - run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }} |
| 34 | + - name: "Push package" |
| 35 | + run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }} |
0 commit comments