-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Add additional overloads for Parameter (#21)
* feature: Add additional overloads for Parameter * Add logo correct path
- Loading branch information
1 parent
e4ef590
commit 0d85e64
Showing
9 changed files
with
279 additions
and
114 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
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
name: Build and Release | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: [ main ] | ||
|
||
env: | ||
|
@@ -13,22 +12,23 @@ env: | |
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
runs-on: windows-2022 | ||
outputs: | ||
nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- name: Install .NET Core | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].0 | ||
with: | ||
dotnet-version: 3.1.x | ||
|
||
- name: Install .NET 5 | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].0 | ||
with: | ||
dotnet-version: 5.0.x | ||
|
||
|
@@ -78,52 +78,3 @@ jobs: | |
with: | ||
name: nuget | ||
path: '**/*.nupkg' | ||
|
||
release: | ||
runs-on: windows-latest | ||
needs: build | ||
if: contains(github.event.pull_request.labels.*.name, 'release') && github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Download NuGet Packages | ||
uses: actions/[email protected] | ||
with: | ||
name: nuget | ||
|
||
- uses: nuget/setup-nuget@v1 | ||
name: Setup NuGet | ||
|
||
# Decode the base 64 encoded pfx and save the Signing_Certificate | ||
- name: Sign NuGet packages | ||
shell: pwsh | ||
run: | | ||
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.SIGNING_CERTIFICATE }}") | ||
[IO.File]::WriteAllBytes("GitHubActionsWorkflow.pfx", $pfx_cert_byte) | ||
$secure_password = ConvertTo-SecureString ${{ secrets.SIGN_CERTIFICATE_PASSWORD }} –asplaintext –force | ||
Import-PfxCertificate -FilePath GitHubActionsWorkflow.pfx -Password $secure_password -CertStoreLocation Cert:\CurrentUser\My | ||
nuget sign -Timestamper http://timestamp.digicert.com -CertificateFingerprint ${{ secrets.SIGN_CERTIFICATE_HASH }} **/*.nupkg | ||
- name: Changelog | ||
uses: glennawatson/ChangeLog@v1 | ||
id: changelog | ||
|
||
- name: Create Release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ needs.build.outputs.nbgv }} | ||
release_name: ${{ needs.build.outputs.nbgv }} | ||
body: | | ||
${{ steps.changelog.outputs.commitLog }} | ||
- name: NuGet Push | ||
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} | ||
SOURCE_URL: https://api.nuget.org/v3/index.json | ||
run: | | ||
dotnet nuget push -s ${{ env.SOURCE_URL }} -k ${{ env.NUGET_AUTH_TOKEN }} **/*.nupkg |
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,77 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
environment: | ||
name: release | ||
outputs: | ||
nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- name: Install .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 3.1.x | ||
|
||
- name: Install .NET 5 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 5.0.x | ||
|
||
- name: NBGV | ||
id: nbgv | ||
uses: dotnet/nbgv@master | ||
with: | ||
setAllVars: true | ||
|
||
- name: NuGet Restore | ||
run: dotnet restore | ||
working-directory: src | ||
|
||
- name: Build | ||
run: dotnet build --configuration=${{ env.configuration }} --verbosity=minimal --no-restore | ||
working-directory: src | ||
|
||
- uses: nuget/setup-nuget@v1 | ||
name: Setup NuGet | ||
|
||
# Decode the base 64 encoded pfx and save the Signing_Certificate | ||
- name: Sign NuGet packages | ||
shell: pwsh | ||
run: | | ||
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.SIGNING_CERTIFICATE }}") | ||
[IO.File]::WriteAllBytes("GitHubActionsWorkflow.pfx", $pfx_cert_byte) | ||
$secure_password = ConvertTo-SecureString ${{ secrets.SIGN_CERTIFICATE_PASSWORD }} –asplaintext –force | ||
Import-PfxCertificate -FilePath GitHubActionsWorkflow.pfx -Password $secure_password -CertStoreLocation Cert:\CurrentUser\My | ||
nuget sign -Timestamper http://timestamp.digicert.com -CertificateFingerprint ${{ secrets.SIGN_CERTIFICATE_HASH }} **/*.nupkg | ||
- name: Changelog | ||
uses: glennawatson/ChangeLog@v1 | ||
id: changelog | ||
|
||
- name: Create Release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ needs.build.outputs.nbgv }} | ||
release_name: ${{ needs.build.outputs.nbgv }} | ||
body: | | ||
${{ steps.changelog.outputs.commitLog }} | ||
- name: NuGet Push | ||
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} | ||
SOURCE_URL: https://api.nuget.org/v3/index.json | ||
run: | | ||
dotnet nuget push -s ${{ env.SOURCE_URL }} -k ${{ env.NUGET_AUTH_TOKEN }} **/*.nupkg |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.