Skip to content

Commit 24e7efd

Browse files
committed
git actions
1 parent 83b6e32 commit 24e7efd

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/smart-problems.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: smart-problems-nuget
5+
6+
on:
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
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+
include-prerelease: true
23+
24+
- name: Build and pack SmartProblems
25+
run: sudo dotnet build ./src/RoyalCode.SmartProblems/RoyalCode.SmartProblems.csproj -c Release
26+
27+
- name: Build and pack Conversions
28+
run: sudo dotnet build ./src/RoyalCode.SmartProblems.Conversions/RoyalCode.SmartProblems.Conversions.csproj -c Release
29+
30+
- name: Build and pack ProblemDetails
31+
run: sudo dotnet build ./src/RoyalCode.SmartProblems.ProblemDetails/RoyalCode.SmartProblems.ProblemDetails.csproj -c Release
32+
33+
- name: Build and pack ApiResults
34+
run: sudo dotnet build ./src/RoyalCode.SmartProblems.ApiResults/RoyalCode.SmartProblems.ApiResults.csproj -c Release
35+
36+
- name: Build and pack Http
37+
run: sudo dotnet build ./src/RoyalCode.SmartProblems.Http/RoyalCode.SmartProblems.Http.csproj -c Release
38+
39+
- name: Build and pack FluentValidation
40+
run: sudo dotnet build ./src/RoyalCode.SmartProblems.FluentValidation/RoyalCode.SmartProblems.FluentValidation.csproj -c Release
41+
42+
- name: Publish
43+
run: sudo dotnet nuget push ./**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)