1010
1111 push :
1212 branches :
13- - main
14- - dev
15- - preview
16- - v*
13+ - main
14+ - dev
15+ - preview
16+ - v*
1717 paths :
18- - " Shiny.Extensions.Localization.Generator/**"
19- - " .github/workflows/**"
18+ - " Shiny.Extensions.Localization.Generator/**"
19+ - " .github/workflows/**"
2020
2121jobs :
2222 build :
2323
2424 runs-on : windows-latest
2525
2626 steps :
27- - name : Checkout
28- uses : actions/checkout@v2
29- with :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ with :
3030 fetch-depth : 0
3131
32- - name : Setup .NET 7.0
33- uses : actions/setup-dotnet@v1
34- with :
35- dotnet-version : ' 7.0.x'
36-
37- - name : Build
38- run : dotnet build LocalizeGenerator.sln /restore -m -property:Configuration=Release -property:PublicRelease=true
39-
40- - name : Post NuGet Artifacts
41- uses : actions/upload-artifact@v2
42- with :
43- name : nuget-artifacts
44- path : ' **/*.nupkg'
45-
46- - name : Publish NuGets
47- if : ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') }}
48- run : dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate
32+ - name : Setup .NET 9.0
33+ uses : actions/setup-dotnet@v4
34+ with :
35+ dotnet-version : ' 9.0.x'
36+
37+ # - uses: AdoptOpenJDK/install-jdk@v1
38+ # with:
39+ # version: '13'
40+ # architecture: x64
41+
42+ # - name: Add .NET Workloads
43+ # run: dotnet workload install maui
44+
45+ # - name: Setup Nerdbank GitVersioning
46+ # uses: dotnet/nbgv@master
47+ # id: nbgv
48+
49+ - name : Build
50+ run : dotnet build LocalizeGenerator.sln /restore -m -property:Configuration=Release -property:PublicRelease=true
51+
52+ # - name: Test
53+ # run: dotnet test Shiny.Extensions.Localization.Generator.Tests/Shiny.Extensions.Localization.Generator.Tests.csproj -c Release --no-build --nologo --no-restore --verbosity normal -l "trx;LogFilePrefix=testresults" --collect "Code Coverage"
54+
55+ - name : Post NuGet Artifacts
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : nuget-artifacts
59+ path : ' **/*.nupkg'
60+
61+ - name : Publish NuGets
62+ if : ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') }}
63+ run : dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate
0 commit comments