Skip to content

Commit

Permalink
Yaml file updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadevnet committed Aug 31, 2024
1 parent 8680203 commit 42b3ff5
Showing 1 changed file with 22 additions and 38 deletions.
60 changes: 22 additions & 38 deletions .github/workflows/Packages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
Expand All @@ -11,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -20,47 +16,35 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Debug
- name: Release
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build --verbosity normal

- name: Pack BiUM.Core
run: dotnet pack ./src/BiUM.Core/BiUM.Core.csproj --no-build -c Release -o nupkg

- name: Upload BiUM.Core Artifact
uses: actions/upload-artifact@v3
with:
name: BiUM.Core
path: ./src/BiUM.Core/bin/Release/*.nupkg

# Build and publish BiUM.Core
- name: Build BiUM.Core
run: dotnet build ./src/BiUM.Core/BiUM.Core.csproj -c Release
- name: Pack BiUM.Core
run: dotnet pack ./src/BiUM.Core/BiUM.Core.csproj -c Release -o nupkg
- name: Publish BiUM.Core
run: dotnet nuget push ./src/BiUM.Core/bin/Release/*.nupkg --source "https://nuget.pkg.github.com/hadevnet/index.json" -k ${{ secrets.SECRET_KEY }}

# Build and publish BiUM.Infrastructure
- name: Build BiUM.Infrastructure
run: dotnet build ./src/BiUM.Infrastructure/BiUM.Infrastructure.csproj -c Release
- name: Pack BiUM.Infrastructure
run: dotnet pack ./src/BiUM.Infrastructure/BiUM.Infrastructure.csproj --no-build -c Release -o nupkg

- name: Upload BiUM.Infrastructure Artifact
uses: actions/upload-artifact@v3
with:
name: BiUM.Infrastructure
path: ./src/BiUM.Infrastructure/bin/Release/*.nupkg

run: dotnet pack ./src/BiUM.Infrastructure/BiUM.Infrastructure.csproj -c Release -o nupkg
- name: Publish BiUM.Infrastructure
run: dotnet nuget push ./src/BiUM.Infrastructure/bin/Release/*.nupkg --source "https://nuget.pkg.github.com/hadevnet/index.json" -k ${{ secrets.SECRET_KEY }}

- name: Pack BiUM.Specialized
run: dotnet pack ./src/BiUM.Specialized/BiUM.Specialized.csproj --no-build -c Release -o nupkg

- name: Upload BiUM.Specialized Artifact
uses: actions/upload-artifact@v3
with:
name: BiUM.Specialized
path: ./src/BiUM.Specialized/bin/Release/*.nupkg

# Build and publish BiUM.Specialized
- name: Build BiUM.Specialized
run: dotnet build ./src/BiUM.Specialized/BiUM.Specialized.csproj -c Release
- name: Pack BiUM.Specialized
run: dotnet pack ./src/BiUM.Specialized/BiUM.Specialized.csproj -c Release -o nupkg
- name: Publish BiUM.Specialized
run: dotnet nuget push ./src/BiUM.Specialized/bin/Release/*.nupkg --source "https://nuget.pkg.github.com/hadevnet/index.json" -k ${{ secrets.SECRET_KEY }}

# Restore dependencies after publishing internal packages
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Debug
- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit 42b3ff5

Please sign in to comment.