Skip to content

Commit

Permalink
- adjusting nuget workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
desjarlais committed May 20, 2024
1 parent 813edf8 commit 2d5baed
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: .NET Desktop
name: .NET NuGet Release

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
create:
tags:
- 'v*'
workflow_dispatch:

jobs:

build:
Expand All @@ -20,9 +19,8 @@ jobs:

env:
Solution_Name: VPKSoft.ScintillaLexers.sln
App_Project_Directory: ScintillaLexers
App_Project_Path: VPKSoft.ScintillaLexers.NET\ScintillaLexers.NET.csproj

App_Project_Directory: VPKSoft.ScintillaLexers.NET
App_Project_Path: VPKSoft.ScintillaLexers.NET\ScintillaLexers.NET.csproj
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
NUGETAPI: ${{ secrets.NUGETAPI }}
GH_PACKAGES_APIKEY: ${{ secrets.GH_PACKAGES_APIKEY }}
Expand Down Expand Up @@ -51,8 +49,8 @@ jobs:
env:
Configuration: ${{ matrix.configuration }}

# Create the app package by building and packaging the NuGet
- name: Create the ScintillaLexers.NET NuGet package
# Create the app package by building and packaging the Windows Application Packaging project
- name: Create the app NuGet package
run: msbuild $env:App_Project_Path /p:Configuration=$env:Configuration

- name: Decode nuget.config
Expand Down Expand Up @@ -83,4 +81,4 @@ jobs:
$arguments = @("push", $file, "$env:GH_PACKAGES_APIKEY", "-Source", "$env:PACKAGESAPI", "-SkipDuplicate")
nuget.exe $arguments
}
}

0 comments on commit 2d5baed

Please sign in to comment.