Skip to content

Commit a3d2f82

Browse files
authored
Merge pull request #28 from cloudscribe/feature/27
#27 yml: nuget auto-build
2 parents e8c3ab3 + 9662306 commit a3d2f82

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: cloudscribe-simplecontactform-develop-nuget-build
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
# pull_request:
10+
# branches: [ "develop" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 8.0.x
23+
- name: Setup NuGet
24+
run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text
25+
- name: Restore dependencies
26+
run: dotnet restore
27+
- name: Build
28+
run: dotnet build -c Release
29+
- name: Create NuGet package
30+
run: dotnet pack -c Release
31+
- name: Publish NuGet package
32+
run: dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }}

NuGet.Config

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

0 commit comments

Comments
 (0)