Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverMorewd authored Dec 14, 2024
1 parent b846321 commit e677525
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pack Nuget

on:
push:
branches: [ "action/release" ]
pull_request:
branches: [ "action/release" ]

jobs:
nuget:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Build the Project
run: dotnet build ./src/Lemon.ModuleNavigation.Avaloniaui --configuration Release

- name: Pack Nuget
run: dotnet pack ./src/Lemon.ModuleNavigation -o ./nugets

- name: Pack Nuget
run: dotnet pack ./src/Lemon.ModuleNavigation.Avaloniaui -o ./nugets

- name: Publish NuGet package
run: dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: nugets
path: ./nugets

0 comments on commit e677525

Please sign in to comment.