Skip to content

Commit f85e35e

Browse files
committed
2 parents 7ad73c0 + e677525 commit f85e35e

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Pack Nuget
2+
3+
on:
4+
push:
5+
branches: [ "action/release" ]
6+
pull_request:
7+
branches: [ "action/release" ]
8+
9+
jobs:
10+
nuget:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4.1.1
15+
16+
- name: Build the Project
17+
run: dotnet build ./src/Lemon.ModuleNavigation.Avaloniaui --configuration Release
18+
19+
- name: Pack Nuget
20+
run: dotnet pack ./src/Lemon.ModuleNavigation -o ./nugets
21+
22+
- name: Pack Nuget
23+
run: dotnet pack ./src/Lemon.ModuleNavigation.Avaloniaui -o ./nugets
24+
25+
- name: Publish NuGet package
26+
run: dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
27+
28+
- name: Upload a Build Artifact
29+
uses: actions/upload-artifact@v4.3.1
30+
with:
31+
name: nugets
32+
path: ./nugets

0 commit comments

Comments
 (0)