File tree Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : NuGet Push
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : windows-latest
9
+ name : Update NuGet package
10
+ steps :
11
+ - name : Checkout repository
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Setup .NET Core @ Latest
15
+ uses : actions/setup-dotnet@v4
16
+
17
+ - name : Setup JDK 11
18
+ uses : actions/setup-java@v2
19
+ with :
20
+ java-version : ' 11'
21
+ distribution : ' adopt'
22
+
23
+ - name : Extract Version from csproj
24
+ id : get_version
25
+ run : |
26
+ $version = Select-String -Path "./src/Aptabase.Maui.csproj" -Pattern '<Version>(.*)</Version>' | ForEach-Object { $_.Matches.Groups[1].Value }
27
+ echo "PackageVersion=$version" | Out-File -Append -FilePath $env:GITHUB_ENV
28
+ shell : powershell
29
+
30
+ - name : Build and Publish
31
+ run : |
32
+ cd ./src/
33
+ dotnet restore Aptabase.Maui.csproj
34
+ dotnet pack Aptabase.Maui.csproj -c Release -o artifacts -p:PackageVersion=${{ env.PackageVersion }}
35
+
36
+ - name : Push
37
+ run : dotnet nuget push ./src/artifacts/Aptabase.Maui.${{ env.PackageVersion }}.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<PackageId >Aptabase.Maui</PackageId >
5
- <Version >0.0.8 </Version >
5
+ <Version >0.0.9 </Version >
6
6
<AssemblyVersion >$(Version)</AssemblyVersion >
7
7
<FileVersion >$(Version)</FileVersion >
8
8
<TargetFrameworks >net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks >
9
9
<Description >Maui SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps</Description >
10
10
<Authors >Aptabase Team</Authors >
11
- <Company >Sumbit Labs Ltd. </Company >
11
+ <Company >Aptabase </Company >
12
12
<PackageProjectUrl >https://aptabase.com</PackageProjectUrl >
13
13
<PackageReadmeFile >README.md</PackageReadmeFile >
14
14
<PackageIcon >logo.png</PackageIcon >
You can’t perform that action at this time.
0 commit comments