Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
und - Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AptiviCEO committed Aug 14, 2023
1 parent 301201a commit 3efcb4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
with:
dotnet-version: '6.0.x'
- name: Solution Compilation
run: dotnet build --configuration Debug "GRILO.sln"
run: dotnet build --configuration Debug "templatepack.sln"
- uses: actions/upload-artifact@v3
if: success()
with:
name: grilo-build
path: "GRILO/bin/Debug/"
path: "working/bin/Debug/"

notify:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
with:
dotnet-version: '6.0.x'
- name: Solution Compilation
run: dotnet build --configuration Debug "GRILO.sln"
run: dotnet build --configuration Debug "templatepack.sln"
- uses: actions/upload-artifact@v3
if: success()
with:
name: grilo-build
path: "GRILO/bin/Debug/"
path: "working/bin/Debug/"

notify:

Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,17 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: NuGet Installation
uses: nuget/setup-nuget@v1
with:
nuget-version: "latest"
- name: MSBuild Installation
uses: microsoft/setup-msbuild@v1.0.2
- name: Dependency Restoration
run: nuget restore "GRILO.sln"
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Solution Compilation
run: msbuild "GRILO.sln" /p:Configuration=Release
run: dotnet pack templatepack.sln /p:Configuration=Release
- name: NuGet Preparation
run: nuget setApiKey ${{ secrets.NUGET_APIKEY }}
- name: Package Publication (Boot)
run: |
$path = "GRILO.Boot\bin\Release"
$FileName = Get-ChildItem -Path $path -Name -Filter "GRILO.*"
nuget push "$path\$FileName" -source "nuget.org" -SkipDuplicate
- name: Package Publication (Bootloader)
run: |
$path = "GRILO.Bootloader\bin\Release"
$FileName = Get-ChildItem -Path $path -Name -Filter "GRILO.*"
$path = "working\bin\Release\*.nupkg"
$FileName = Get-ChildItem -Path $path -Name -Filter "KS.Templates.*"
nuget push "$path\$FileName" -source "nuget.org" -SkipDuplicate

0 comments on commit 3efcb4d

Please sign in to comment.