Skip to content

.Push to GitHub registry #2

.Push to GitHub registry

.Push to GitHub registry #2

Workflow file for this run

name: .Push to GitHub registry
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
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 }