Skip to content

Commit 57e6f65

Browse files
committed
Setting up GitHub Actions
1 parent bc66cc5 commit 57e6f65

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
- name: Restore dependencies
2424
run: dotnet restore
2525
- name: Build
26-
run: dotnet build --no-restore
26+
run: dotnet build ./src/SteamWebAPI2.sln --no-restore
2727
- name: Test
28-
run: dotnet test --no-build --verbosity normal
28+
run: dotnet test ./src --no-build --verbosity normal
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: Build, Test, and Publish .NET
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
tags: [ "*" ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 8.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build ./src/SteamWebAPI2.sln -c Release --no-restore
26+
- name: Test
27+
run: dotnet test ./src -c Release --no-build --verbosity normal
28+
- name: Pack
29+
run: dotnet pack ./src/SteamWebAPI2/SteamWebAPI2.csproj -c Release --no-build --output .
30+
- name: Publish
31+
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)