Skip to content

Commit e980d19

Browse files
committed
Release and build workflow
1 parent 509bb9c commit e980d19

File tree

3 files changed

+53
-76
lines changed

3 files changed

+53
-76
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: "8.0.x"
22+
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
working-directory: ./ValueMapper
26+
27+
- name: Build
28+
run: dotnet build --configuration Release --no-restore
29+
working-directory: ./ValueMapper

.github/workflows/dotnet-desktop.yml

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

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: "8.0.x"
18+
19+
- name: Create NuGet Package
20+
run: dotnet pack -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}"
21+
working-directory: ./ValueMapper/ValueMapperCore
22+
23+
- name: Publish NuGet Package
24+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --no-symbols true

0 commit comments

Comments
 (0)