Commit fa02f12 1 parent a0a06da commit fa02f12 Copy full SHA for fa02f12
File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ push :
4
+ branches :
5
+ - " **"
6
+ pull_request :
7
+ branches :
8
+ - " master"
9
+ jobs :
10
+ build_matrix :
11
+ strategy :
12
+ matrix :
13
+ os : [windows-latest, ubuntu-latest, macos-latest]
14
+ runs-on : ${{ matrix.os }}
15
+ timeout-minutes : 15
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v4
19
+ - name : Setup .NET 6.0
20
+ uses : actions/setup-dotnet@v4
21
+ with :
22
+ dotnet-version : 6.0.x
23
+ - name : Restore Google.Authenticator
24
+ run : dotnet restore ./Google.Authenticator/Google.Authenticator.csproj
25
+ - name : Restore Google.Authenticator.Tests
26
+ run : dotnet restore ./Google.Authenticator.Tests/Google.Authenticator.Tests.csproj
27
+ - name : Build Package
28
+ run : dotnet build ./Google.Authenticator/Google.Authenticator.csproj --configuration $(buildConfiguration) --no-restore
29
+ - name : Build Tests
30
+ run : dotnet build ./Google.Authenticator.Tests/Google.Authenticator.Tests.csproj --configuration $(buildConfiguration) --no-restore --no-dependencies
31
+ - name : Test
32
+ run : dotnet test ./Google.Authenticator.Tests/Google.Authenticator.Tests.csproj --no-build --verbosity normal --configuration Release
33
+ - name : Pack
34
+ if : ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
35
+ run : |
36
+ dotnet pack ./Google.Authenticator/Google.Authenticator.csproj --configuration $(buildConfiguration) --no-build
37
+ dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.NUGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments