We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417df6b commit c23daeeCopy full SHA for c23daee
.github/workflows/publish.yml
@@ -0,0 +1,29 @@
1
+name: Publish
2
+
3
+on:
4
+ release:
5
+ types: [released, prereleased]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - uses: actions/checkout@v4
13
14
+ - name: Setup .NET
15
+ uses: actions/setup-dotnet@v4
16
+ with:
17
+ dotnet-version: '9.0.x'
18
19
+ - name: Restore dependencies
20
+ run: dotnet restore
21
22
+ - name: Build
23
+ run: dotnet build --no-restore --configuration Release
24
25
+ - name: Pack
26
+ run: dotnet pack src/LightningDB --no-build --configuration Release --output ./artifacts
27
28
+ - name: Publish to NuGet
29
+ run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments