-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 2.33 KB
/
blauhaus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Blauhaus Packages
on:
push:
branches:
- release/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true
- name: Set Version
run: |
npm install @actions/core --save
node ./scripts/getversion.js
- name: Build NuGet Package
run: |
dotnet build ./src/Blauhaus.Common.sln --configuration Release
dotnet pack ./src/Blauhaus.Common.ValueObjects/Blauhaus.Common.ValueObjects.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.Common.Utils/Blauhaus.Common.Utils.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.Common.TestHelpers/Blauhaus.Common.TestHelpers.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.Common.Abstractions/Blauhaus.Common.Abstractions.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.Common.Configuration/Blauhaus.Common.Configuration.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
- name: Deploy NuGet Package
run: |
dotnet nuget push /home/runner/work/Blauhaus.Common/Blauhaus.Common/Blauhaus.Common.ValueObjects.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /home/runner/work/Blauhaus.Common/Blauhaus.Common/Blauhaus.Common.Utils.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /home/runner/work/Blauhaus.Common/Blauhaus.Common/Blauhaus.Common.TestHelpers.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /home/runner/work/Blauhaus.Common/Blauhaus.Common/Blauhaus.Common.Abstractions.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /home/runner/work/Blauhaus.Common/Blauhaus.Common/Blauhaus.Common.Configuration.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json