Skip to content

Commit

Permalink
wip: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 27, 2024
1 parent 83a18f0 commit 83fe7b2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 39 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
nodejs
nodePackages.npm
typescript
dotnetPackages.Nuget
yarn
];
};
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
#!/usr/bin/env bash
set -xe

export THISDIR="$( cd "$(dirname "$0")" ; pwd -P )"
THISDIR="$( cd "$(dirname "$0")" ; pwd -P )"

pushd .
cd $THISDIR

rm -rf *.nupkg

NUSPEC=irt.tmp.nuspec
cat irt.nuspec | sed 's/0.0.1-UNSET/'${IDEALINGUA_VERSION}'/g' > $NUSPEC
cat $NUSPEC
nuget pack $NUSPEC
rm $NUSPEC
[[ "$CI_PULL_REQUEST" != "false" ]] && exit 0
[[ -z "$TOKEN_NUGET" ]] && exit 0
[[ -z "$CI_BUILD_UNIQ_SUFFIX" ]] && exit 0

#nuget setapikey $TOKEN_NUGET
if [[ "$CI_BRANCH_TAG" =~ ^v.*$ ]] ; then
dotnet build -c Release
else
dotnet build -c Release --version-suffix "alpha.${CI_BUILD_UNIQ_SUFFIX}"
fi

for TRG in $(find . -name '*.nupkg' -type f -print)
do
dotnet nuget push $TRG -k $TOKEN_NUGET --source https://api.nuget.org/v3/index.json || exit 1
done
find . -name '*.nupkg' -type f -exec dotnet nuget push {} -k "${TOKEN_NUGET}" --source https://api.nuget.org/v3/index.json \;

popd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>


<PackageId>Izumi.RPC.Runtime.CS</PackageId>
<Authors>Septimal Mind</Authors>
<Company>Septimal Mind Ltd</Company>
<Product>Idealingua-v1</Product>
<PackageTags>IDL;RPC;7mind</PackageTags>
<IsPackable>true</IsPackable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>

</Description>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 83fe7b2

Please sign in to comment.