Skip to content

Commit

Permalink
build and pack all three project individually
Browse files Browse the repository at this point in the history
  • Loading branch information
florianBachinger authored Jan 18, 2024
1 parent af062ae commit f9cada7
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
name: Build, Test and (Publish if not pull request) ${{ matrix.dotnet }}

steps:
- uses: actions/checkout@v2
- name: checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can work.

Expand All @@ -30,17 +31,30 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}


- name: Prep packages
run: dotnet nuget add source --username florianBachinger --password ${{ secrets.SPA_DAT_PackageDeployment_Token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/prescriptiveanalytics/index.json"

- name: dotnet build release
run: dotnet build src/Communication -c Release

- name: dotnet pack release
run: dotnet pack src/Communication -c Release

- name: Prep packages
run: dotnet nuget add source --username florianBachinger --password ${{ secrets.SPA_DAT_PackageDeployment_Token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/prescriptiveanalytics/index.json"

- name: publish every release to NuGet.org
run: dotnet nuget push src/Communication/bin/Release/*.nupkg -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')

- name: dotnet build release
run: dotnet build src/Configuration -c Release
- name: dotnet pack release
run: dotnet pack src/Configuration -c Release
- name: publish every release to NuGet.org
run: dotnet nuget push src/Configuration/bin/Release/*.nupkg -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')

- name: dotnet build release
run: dotnet build src/Utils -c Release
- name: dotnet pack release
run: dotnet pack src/Utils -c Release
- name: publish every release to NuGet.org
run: dotnet nuget push src/Utils/bin/Release/*.nupkg -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')

0 comments on commit f9cada7

Please sign in to comment.