forked from gitter-badger/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update build 1st try * fix Windows build
- Loading branch information
1 parent
134c90f
commit 577bc97
Showing
4 changed files
with
49 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- features/** | ||
tags: | ||
- '*.*.*' | ||
pull_request: | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: [macOS-latest, ubuntu-latest, windows-latest] | ||
name: ${{ matrix.runs-on }} | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@af513c7a016048ae468971c52ed77d9562c7c819 | ||
- run: dotnet --info | ||
|
||
- if: contains(matrix.runs-on, 'macOS') || contains(matrix.runs-on, 'ubuntu') | ||
run: ./build.sh | ||
- if: matrix.runs-on == 'windows-latest' && github.ref != 'refs/heads/main' && !contains(github.ref, 'refs/tags/') | ||
run: ./build.ps1 | ||
- if: (matrix.runs-on == 'windows-latest') && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/')) | ||
env: | ||
SignClientSecret: ${{ secrets.SIGNCLIENT }} | ||
run: | | ||
./build.ps1 sign | ||
dotnet nuget push .\nuget\*.nupkg -s https://www.myget.org/F/identity/api/v2/package -k ${{ secrets.MYGET }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"SignClient": { | ||
|
||
"AzureAd": { | ||
"AADInstance": "https://login.microsoftonline.com/", | ||
"ClientId": "c248d68a-ba6f-4aa9-8a68-71fe872063f8", | ||
"TenantId": "16076fdc-fcc1-4a15-b1ca-32c9a255900e"}, | ||
|
||
"Service": { | ||
"Url": "https://codesign.dotnetfoundation.org/", | ||
"ResourceId": "https://SignService/3c30251f-36f3-490b-a955-520addb85001" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,14 +87,8 @@ static void Main(string[] args) | |
|
||
private static void Sign(string path, string searchTerm) | ||
{ | ||
var signClientConfig = Environment.GetEnvironmentVariable("SignClientConfig"); | ||
var signClientSecret = Environment.GetEnvironmentVariable("SignClientSecret"); | ||
|
||
if (string.IsNullOrWhiteSpace(signClientConfig)) | ||
{ | ||
throw new Exception($"SignClientConfig{envVarMissing}"); | ||
} | ||
|
||
if (string.IsNullOrWhiteSpace(signClientSecret)) | ||
{ | ||
throw new Exception($"SignClientSecret{envVarMissing}"); | ||
|
@@ -103,7 +97,7 @@ private static void Sign(string path, string searchTerm) | |
foreach (var file in Directory.GetFiles(path, searchTerm, SearchOption.AllDirectories)) | ||
{ | ||
Console.WriteLine($" Signing {file}"); | ||
Run("dotnet", $"SignClient sign -c {signClientConfig} -i {file} -r [email protected] -s \"{signClientSecret}\" -n 'IdentityServer4'", noEcho: true); | ||
Run("dotnet", $"SignClient sign -c ../../signClient.json -i {file} -r [email protected] -s \"{signClientSecret}\" -n 'IdentityServer4'", noEcho: true); | ||
} | ||
} | ||
} | ||
|