Skip to content

Commit 4857202

Browse files
committed
feat: update workflows
1 parent 9e48f7c commit 4857202

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
name: CI
1+
name: Build & Test
22

33
on:
4-
push:
5-
branches: [main, master]
6-
pull_request:
7-
branches: [main, master]
4+
workflow_dispatch:
85

96
env:
107
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
@@ -13,6 +10,7 @@ env:
1310

1411
jobs:
1512
build:
13+
name: Build (${{ matrix.os }})
1614
runs-on: ${{ matrix.os }}
1715

1816
strategy:
@@ -28,11 +26,11 @@ jobs:
2826
with:
2927
dotnet-version: '9.0.x'
3028

31-
- name: Restore dependencies
29+
- name: Restore
3230
run: dotnet restore
3331

3432
- name: Build
3533
run: dotnet build --configuration Release --no-restore
3634

37-
- name: Pack (verify packaging works)
35+
- name: Pack
3836
run: dotnet pack src/ObsKit.NET/ObsKit.NET.csproj --configuration Release --no-build --output ./nupkg

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release to NuGet
1+
name: Publish to NuGet
22

33
on:
44
workflow_dispatch:
@@ -14,7 +14,8 @@ env:
1414
DOTNET_CLI_TELEMETRY_OPTOUT: 1
1515

1616
jobs:
17-
release:
17+
publish:
18+
name: Build, Pack & Publish
1819
runs-on: ubuntu-latest
1920
permissions:
2021
contents: write
@@ -28,7 +29,7 @@ jobs:
2829
with:
2930
dotnet-version: '9.0.x'
3031

31-
- name: Restore dependencies
32+
- name: Restore
3233
run: dotnet restore
3334

3435
- name: Build

0 commit comments

Comments
 (0)