@@ -2,66 +2,66 @@ name: CI
22
33on :
44 push :
5- branches: [main]
6- tags: ['[0-9]*.[0-9]*.[0-9]*']
5+ branches : [main]
6+ tags : ['[0-9]*.[0-9]*.[0-9]*']
77 pull_request :
8- branches: [main]
8+ branches : [main]
99
1010jobs :
1111 build :
12- runs-on: ubuntu-latest
13- steps:
14- - name: Checkout
15- uses: actions/checkout@v4
16- with:
17- fetch-depth: 0
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
1818
19- - name: Setup .NET
20- uses: actions/setup-dotnet@v4
21- with:
22- dotnet-version: 10.0.x
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
21+ with :
22+ dotnet-version : 10.0.x
2323
24- - name: Restore
25- run: dotnet restore
24+ - name : Restore
25+ run : dotnet restore
2626
27- - name: Build
28- run: dotnet build --configuration Release --no-restore
27+ - name : Build
28+ run : dotnet build --configuration Release --no-restore
2929
30- - name: Test
31- run: dotnet test --configuration Release --no-build --verbosity normal
30+ - name : Test
31+ run : dotnet test --configuration Release --no-build --verbosity normal
3232
33- - name: Pack
34- run: dotnet pack --configuration Release --no-build --output ./artifacts
33+ - name : Pack
34+ run : dotnet pack --configuration Release --no-build --output ./artifacts
3535
36- - name: Upload artifacts
37- uses: actions/upload-artifact@v4
38- with:
39- name: packages
40- path: ./artifacts/*.nupkg
36+ - name : Upload artifacts
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : packages
40+ path : ./artifacts/*.nupkg
4141
4242 publish :
43- needs: build
44- runs-on: ubuntu-latest
45- if: startsWith(github.ref, 'refs/tags/')
46- permissions:
47- id-token: write
48- steps:
49- - name: Download artifacts
50- uses: actions/download-artifact@v4
51- with:
52- name: packages
53- path: ./artifacts
43+ needs : build
44+ runs-on : ubuntu-latest
45+ if : startsWith(github.ref, 'refs/tags/')
46+ permissions :
47+ id-token : write
48+ steps :
49+ - name : Download artifacts
50+ uses : actions/download-artifact@v4
51+ with :
52+ name : packages
53+ path : ./artifacts
5454
55- - name: Setup .NET
56- uses: actions/setup-dotnet@v4
57- with:
58- dotnet-version: 10.0.x
55+ - name : Setup .NET
56+ uses : actions/setup-dotnet@v4
57+ with :
58+ dotnet-version : 10.0.x
5959
60- - name: Login to NuGet
61- id: login
62- uses: NuGet/login@v1
63- with:
64- nuget-server-url: https://api.nuget.org/v3/index.json
60+ - name : Login to NuGet
61+ id : login
62+ uses : NuGet/login@v1
63+ with :
64+ nuget-server-url : https://api.nuget.org/v3/index.json
6565
66- - name: Push to NuGet
67- run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
66+ - name : Push to NuGet
67+ run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments