Skip to content

Commit f640512

Browse files
authored
Merge pull request #84 from firebase/hkj-windows-release
GCB config for building on Windows
2 parents 36c0b1c + 9625dea commit f640512

File tree

4 files changed

+23
-34
lines changed

4 files changed

+23
-34
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ We also welcome bug reports, feature requests, and code review feedback.
5858
Admin .NET SDK supports the following frameworks:
5959

6060
* .NET Framework 4.5+
61-
* netstandard 1.5, providing .NET Core support
61+
* netstandard 1.5 and 2.0, providing .NET Core support
6262

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

7878
Your use of Firebase is governed by the
79-
[Terms of Service for Firebase Services](https://firebase.google.com/terms/).
79+
[Terms of Service for Firebase Services](https://firebase.google.com/terms/).

package_release.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

release/build.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
param(
2+
[String]$sdkVersion,
3+
[String]$nugetKey
4+
)
5+
6+
[Environment]::SetEnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", 1)
7+
[Environment]::SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", 1)
8+
9+
git clone https://github.com/firebase/firebase-admin-dotnet.git
10+
cd firebase-admin-dotnet
11+
dotnet pack -c Release FirebaseAdmin/FirebaseAdmin
12+
cd FirebaseAdmin/FirebaseAdmin/bin/Release
13+
echo "Pushing FirebaseAdmin.$sdkVersion.nupkg to nuget.org"
14+
dotnet nuget push FirebaseAdmin.$sdkVersion.nupkg -k $nugetKey -s https://api.nuget.org/v3/index.json

release/cloudbuild.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- name: 'gcr.io/$PROJECT_ID/windows-builder'
3+
args: [
4+
'--command', 'powershell.exe -file build.ps1 -sdkVersion ${_SDK_VERSION} -nugetKey ${_NUGET_KEY}' ,
5+
'--image', 'projects/$PROJECT_ID/global/images/firebase-windows-dotnet-v1'
6+
]
7+
timeout: 1200s

0 commit comments

Comments
 (0)