Skip to content

Commit

Permalink
Add symbol package
Browse files Browse the repository at this point in the history
* Also remove confusing next-version from GitVersion.yml
  • Loading branch information
jasonleenaylor committed Apr 8, 2021
1 parent 72e597c commit 6ebe593
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@77a48bbb85cd3809790223e895ba4b6cbc110fe8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: build, test, & pack
run: dotnet pack -o .

- name: Push to Nuget
run: dotnet nuget push SIL.DesktopAnalytics.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.PUBLISH_TO_NUGET_ORG}} --skip-duplicate
run: |
dotnet nuget push SIL.DesktopAnalytics.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.PUBLISH_TO_NUGET_ORG}} --skip-duplicate
dotnet nuget push SIL.DesktopAnalytics.*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.PUBLISH_TO_NUGET_ORG}} --skip-duplicate
1 change: 0 additions & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mode: Mainline
next-version: 1.2.5
increment: Patch
assembly-versioning-scheme: MajorMinorPatchTag
branches:
Expand Down
2 changes: 1 addition & 1 deletion src/DesktopAnalytics/Analytics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public Analytics(string apiSecret, UserInfo userInfo, Dictionary<string, string>
SetApplicationProperty("64bit App", Environment.Is64BitProcess.ToString());


if (string.IsNullOrEmpty(AnalyticsSettings.Default.LastVersionLaunched))
if (string.IsNullOrEmpty(AnalyticsSettings.Default.LastVersionLaunched))
{
//"Created" is a special property that segment.io understands and coverts to equivalents in various analytics services
//So it's not as descriptive for us as "FirstLaunchOnSystem", but it will give the best experience on the analytics sites.
Expand Down
7 changes: 7 additions & 0 deletions src/DesktopAnalytics/DesktopAnalytics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
<RepositoryUrl>https://github.com/sillsdev/desktopanalytics.net</RepositoryUrl>
<Description>Wrapper around segment.com's Analytics.net specifically for desktop apps (instead of servers).</Description>
</PropertyGroup>
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Analytics" Version="3.6.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
Expand Down

0 comments on commit 6ebe593

Please sign in to comment.