Skip to content

Commit 8ca16c7

Browse files
committed
GitHub Actions
1 parent 2a488d9 commit 8ca16c7

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,9 @@ jobs:
2323
run: dotnet restore ./src/SteamWebAPI2.sln
2424
- name: Build
2525
run: dotnet build ./src/SteamWebAPI2.sln --no-restore
26-
27-
publish:
28-
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
29-
needs: build
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v4
33-
- name: Setup .NET
34-
uses: actions/setup-dotnet@v4
35-
with:
36-
dotnet-version: 8.0.x
37-
- name: Restore dependencies
38-
run: dotnet restore ./src/SteamWebAPI2.sln
3926
- name: Pack
27+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
4028
run: dotnet pack ./src/SteamWebAPI2/SteamWebAPI2.csproj -c Release --no-build --output .
4129
- name: Publish
30+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
4231
run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json -n --skip-duplicate

0 commit comments

Comments
 (0)