-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove adding nuget package to github release
- Loading branch information
1 parent
face624
commit e83b474
Showing
2 changed files
with
17 additions
and
30 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 |
---|---|---|
|
@@ -20,11 +20,11 @@ jobs: | |
- name: Build | ||
run: npm run build | ||
working-directory: src/nscenario-report-browser/ | ||
|
||
build-extension: | ||
runs-on: windows-latest | ||
needs: build-template-presenter | ||
env: | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
RepositoryUrl: 'https://github.com/${{ github.repository }}' | ||
|
@@ -37,17 +37,17 @@ jobs: | |
PackageReleaseNotes: 'https://github.com/${{ github.repository }}/releases' | ||
ContinuousIntegrationBuild: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET Core 8 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0' | ||
dotnet-version: '8.0' | ||
- name: Calculate next version | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
minor-pattern: '.*' | ||
major-pattern: 'BREAKING CHANGES' | ||
output-to-env-variable: 'VersionPrefix' | ||
output-to-env-variable: 'VersionPrefix' | ||
- name: Materialize Signing Key | ||
id: write_sign_key_file | ||
uses: timheuer/base64-to-file@v1 | ||
|
@@ -57,14 +57,10 @@ jobs: | |
- name: Restore dependencies | ||
run: | | ||
dotnet nuget locals all --clear | ||
dotnet restore $env:SolutionPath | ||
dotnet restore $env:SolutionPath | ||
- name: Build extension | ||
run: dotnet build $env:SolutionPath | ||
run: dotnet build $env:SolutionPath | ||
env: | ||
SignAssembly: true | ||
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }} | ||
- name: Collect artifacts - nugets | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: NScenario-Nugets | ||
path: '**/NScenario*.nupkg' | ||
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }} | ||
|
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 |
---|---|---|
|
@@ -9,29 +9,29 @@ on: | |
jobs: | ||
build-extension: | ||
runs-on: windows-latest | ||
env: | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
RepositoryUrl: 'https://github.com/${{ github.repository }}' | ||
RepositoryBranch: '${{ github.ref }}' | ||
SourceRevisionId: '${{ github.sha }}' | ||
SourceRevisionId: '${{ github.sha }}' | ||
Configuration: Release | ||
SolutionPath: src\NScenario.sln | ||
Deterministic: true | ||
PackageReleaseNotes: 'https://github.com/${{ github.repository }}/releases' | ||
ContinuousIntegrationBuild: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core 8 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0' | ||
dotnet-version: '8.0' | ||
- name: Calculate next version | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
minor-pattern: '.*' | ||
major-pattern: 'BREAKING CHANGES' | ||
output-to-env-variable: 'Version' | ||
output-to-env-variable: 'Version' | ||
- name: Materialize Signing Key | ||
id: write_sign_key_file | ||
uses: timheuer/base64-to-file@v1 | ||
|
@@ -41,12 +41,12 @@ jobs: | |
- name: Restore dependencies | ||
run: | | ||
dotnet nuget locals all --clear | ||
dotnet restore $env:SolutionPath | ||
dotnet restore $env:SolutionPath | ||
- name: Build extension | ||
run: dotnet build $env:SolutionPath | ||
run: dotnet build $env:SolutionPath | ||
env: | ||
SignAssembly: true | ||
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }} | ||
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }} | ||
- name: Generate release note | ||
run: | | ||
git fetch --prune | ||
|
@@ -64,15 +64,6 @@ jobs: | |
body_path: release_note.md | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset - Nuget | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: src\NScenario\bin\Release\NScenario.${{ env.Version }}.nupkg | ||
asset_name: NScenario.${{ env.Version }}.nupkg | ||
asset_content_type: binary/octet-stream | ||
- name: Publish extension to Nuget | ||
run: | | ||
dotnet nuget push src\NScenario\bin\Release\NScenario.${{ env.Version }}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |