Skip to content

Commit ef70ca9

Browse files
andrei-m-codeclaude
andcommitted
Add GitHub Actions workflows for CI and NuGet publishing, remove Travis CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ddeaaf1 commit ef70ca9

3 files changed

Lines changed: 50 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: '9.x'
17+
18+
- name: Restore
19+
run: dotnet restore CorePush.sln
20+
21+
- name: Build
22+
run: dotnet build CorePush.sln --no-restore

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to NuGet
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: '9.x'
17+
18+
- name: Restore
19+
run: dotnet restore CorePush.sln
20+
21+
- name: Build
22+
run: dotnet build CorePush.sln --no-restore -c Release
23+
24+
- name: Pack CorePush
25+
run: dotnet pack CorePush/CorePush.csproj --no-build -c Release -o out
26+
27+
- name: Push to NuGet
28+
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)