-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f8f0a7
commit ed206ea
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: .Push to GitHub registry | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.0.x | ||
|
||
- name: Add private GitHub registry to NuGet | ||
run: dotnet nuget add source -Name "AirSphere" -Source https://nuget.pkg.github.com/airsphere-gmbh/index.json -Username airsphere-gmbh -Password ${{ secrets.AIRSPHERE_PACKAGES_WRITE }} --store-password-in-clear-text | ||
|
||
- name: Pack | ||
run: dotnet pack --nologo -c Release -o ./output/ src/Microsoft.Extensions.Logging.Log4Net.AspNetCore/Microsoft.Extensions.Logging.Log4Net.AspNetCore.csproj | ||
|
||
- name: Push generated packages to GitHub registry | ||
shell: pwsh | ||
run: Get-ChildItem ./output/*.nupkg -Recurse | %{ nuget push $_.FullName -Source "AirSphere" -SkipDuplicate } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters