Skip to content

Commit

Permalink
Adds deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlubb14 committed Nov 19, 2024
1 parent 2f8f0a7 commit ed206ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
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 }
3 changes: 0 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
dotnet-version: |
8.0.x
7.0.x
6.0.x
5.0.x
3.1.x
- name: 🛠 Restore packages
run: dotnet restore "${{ env.SOLUTION_PATH }}"
Expand Down

0 comments on commit ed206ea

Please sign in to comment.