File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11name : Build Project
2- # on: [workflow_dispatch, push, pull_request]
3- on : [workflow_dispatch, pull_request]
2+ on : [push, workflow_dispatch, pull_request]
43jobs :
54 build :
65 runs-on : windows-latest
109 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
1110 DOTNET_GENERATE_ASPNET_CERTIFICATE : 0
1211 steps :
13- - uses : actions/checkout@v2
14- - name : Setup .NET Core
15- uses : actions/setup-dotnet@v1
12+ - uses : actions/checkout@v4
13+ - name : Setup .NET
14+ uses : actions/setup-dotnet@v4
1615 with :
17- dotnet-version : 5.0.100-preview.6.20318.15
18- - name : Show DOTNET_NOLOGO
19- run : echo DOTNET_NOLOGO=$Env:DOTNET_NOLOGO
16+ dotnet-version : ' 8.0.x'
2017 - name : Restore
2118 run : dotnet restore
2219 - name : Build
2320 run : dotnet build --configuration Release --no-restore
2421 - name : Pack
2522 run : dotnet pack --configuration Release --no-build
26- - uses : actions/upload-artifact@v2
23+ - uses : actions/upload-artifact@v4
2724 with :
2825 name : nuget-package
2926 path : GitHubActionsTest/bin/Release/*.nupkg
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
5- <RepositoryUrl >https://github.com/PathogenPlayground/GitHubActionsTest.git</ RepositoryUrl >
4+ <TargetFramework >net8 </TargetFramework >
5+ <Nullable >enable</ Nullable >
66 </PropertyGroup >
77
88</Project >
Original file line number Diff line number Diff line change 22{
33 public class Test
44 {
5+ public object Field ;
6+
57 public override string ToString ( )
68 => "Hello, world!" ;
79 }
You can’t perform that action at this time.
0 commit comments