Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Release-Candidate committed Apr 23, 2021
1 parent 50601f1 commit 6cb85f2
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ paket-files/

# Jupyter notebook checkpoints
.ipynb_checkpoints/
/src/TzolkinDate/Properties/PublishProfiles
/src/TzolkinDate/TzolkinDate.fsproj.user
2 changes: 2 additions & 0 deletions Tzolkin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Pipfile = Pipfile
postBuild = postBuild
privacy_policy.md = privacy_policy.md
publish_nuget.bat = publish_nuget.bat
publish_nuget.sh = publish_nuget.sh
README.md = README.md
run_sharplint.bat = run_sharplint.bat
run_sharplint.sh = run_sharplint.sh
Expand Down
Binary file added nuget_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions publish_nuget.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:: SPDX-License-Identifier: MIT
:: Copyright (C) 2021 Roland Csaszar
::
:: Project: Tzolkin
:: File: publish_nuget.bat
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: The Nuget token must be saved using `nuget setapikey` to not need to input it.

dotnet nuget push .\src\TzolkinDate\bin\Release\Tzolkin.*.nupkg --source https://api.nuget.org/v3/index.json
12 changes: 12 additions & 0 deletions publish_nuget.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Roland Csaszar
#
# Project: Tzolkin
# File: run_sharplint.sh
#
################################################################################

# The Nuget token must be saved using `nuget setapikey` to not need to input it.

dotnet nuget push .\src\TzolkinDate\bin\Release\Tzolkin.*.nupkg --source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion run_sharplint.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

:: install dotnet tool install -g dotnet-fsharplint

dotnet fsharplint lint FSHARP_Tzolkin.sln
dotnet fsharplint lint Tzolkin.sln
2 changes: 1 addition & 1 deletion run_sharplint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

# install dotnet tool install -g dotnet-fsharplint

dotnet fsharplint lint FSHARP_TEMPLATE.sln
dotnet fsharplint lint Tzolkin.sln
19 changes: 17 additions & 2 deletions src/TzolkinDate/TzolkinDate.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@
<PackageId>Tzolkin</PackageId>
<PackageLicenseFile></PackageLicenseFile>
<PackageProjectUrl>https://github.com/Release-Candidate/Tzolkin</PackageProjectUrl>
<RepositoryType>Git</RepositoryType>
<NeutralLanguage>en</NeutralLanguage>
<RepositoryType>git</RepositoryType>
<NeutralLanguage>es</NeutralLanguage>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/Release-Candidate/Tzolkin</RepositoryUrl>
<Version>0.9.16</Version>
<Authors>Roland Csaszar</Authors>
<Company>Release-Candidate</Company>
<Product>Tzolkin</Product>
<Copyright>(c) 2021 Roland Csaszar</Copyright>
<PackageIcon>nuget_icon.png</PackageIcon>
<PackageTags>Maya Tzolkin calendar calculator converter</PackageTags>
<PackageReleaseNotes>Initial Release</PackageReleaseNotes>
<Description>A library to convert and calculate with MayaTzolk’in dates and gregorian dates.</Description>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generics.fs" />
Expand All @@ -37,4 +46,10 @@
<ItemGroup>
<PackageReference Update="FSharp.Core" Version="5.0.1" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\nuget_icon.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>

0 comments on commit 6cb85f2

Please sign in to comment.