There was an error while loading. Please reload this page.
1 parent 9d09ba1 commit 61528b0Copy full SHA for 61528b0
1 file changed
.github/workflows/build.yml
@@ -18,18 +18,19 @@ jobs:
18
with:
19
dotnet-version: 10.0.x
20
21
- - name: NuGet login
22
- uses: NuGet/login@v1
23
- id: login
24
- with:
25
- user: ${{secrets.NUGET_USER}}
26
-
27
- name: Build
28
run: dotnet build --configuration Release
29
30
- name: Run tests
31
run: dotnet test --no-build --configuration Release
32
+ - name: NuGet login
+ uses: NuGet/login@v1
+ if: startsWith(github.ref, 'refs/tags/')
+ id: login
+ with:
+ user: ${{secrets.NUGET_USER}}
33
+
34
- name: Pack
35
if: startsWith(github.ref, 'refs/tags/')
36
run: dotnet pack src --no-build --configuration Release --output ./nupkg
0 commit comments