Skip to content

Commit

Permalink
Merge pull request #84 from firebase/hkj-windows-release
Browse files Browse the repository at this point in the history
GCB config for building on Windows
  • Loading branch information
hiranya911 committed Jul 5, 2019
2 parents 36c0b1c + 9625dea commit f640512
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -58,7 +58,7 @@ We also welcome bug reports, feature requests, and code review feedback.
Admin .NET SDK supports the following frameworks:

* .NET Framework 4.5+
* netstandard 1.5, providing .NET Core support
* netstandard 1.5 and 2.0, providing .NET Core support

This is consistent with the frameworks supported by other .NET libraries
associated with Google Cloud Platform.
Expand All @@ -76,4 +76,4 @@ Firebase Admin .NET SDK is licensed under the
[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

Your use of Firebase is governed by the
[Terms of Service for Firebase Services](https://firebase.google.com/terms/).
[Terms of Service for Firebase Services](https://firebase.google.com/terms/).
32 changes: 0 additions & 32 deletions package_release.sh

This file was deleted.

14 changes: 14 additions & 0 deletions release/build.ps1
@@ -0,0 +1,14 @@
param(
[String]$sdkVersion,
[String]$nugetKey
)

[Environment]::SetEnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", 1)
[Environment]::SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", 1)

git clone https://github.com/firebase/firebase-admin-dotnet.git
cd firebase-admin-dotnet
dotnet pack -c Release FirebaseAdmin/FirebaseAdmin
cd FirebaseAdmin/FirebaseAdmin/bin/Release
echo "Pushing FirebaseAdmin.$sdkVersion.nupkg to nuget.org"
dotnet nuget push FirebaseAdmin.$sdkVersion.nupkg -k $nugetKey -s https://api.nuget.org/v3/index.json
7 changes: 7 additions & 0 deletions release/cloudbuild.yaml
@@ -0,0 +1,7 @@
steps:
- name: 'gcr.io/$PROJECT_ID/windows-builder'
args: [
'--command', 'powershell.exe -file build.ps1 -sdkVersion ${_SDK_VERSION} -nugetKey ${_NUGET_KEY}' ,
'--image', 'projects/$PROJECT_ID/global/images/firebase-windows-dotnet-v1'
]
timeout: 1200s

0 comments on commit f640512

Please sign in to comment.