File tree Expand file tree Collapse file tree 3 files changed +22
-18
lines changed
src/HttpRequestInterceptor Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : Scissors CI
22on :
33 push :
44 branches :
55 - branch-zero
66 pull_request :
7- types : [opened, synchronize, reopened]
7+
88jobs :
99 build :
1010 name : Build
1414 uses : actions/setup-java@v1
1515 with :
1616 java-version : 1.11
17- - uses : actions/checkout@v2
17+
18+ - name : Checkout
19+ uses : actions/checkout@v2
1820 with :
1921 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
2022
4143 dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
4244
4345 - name : Sonar Begin
44- env :
45- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4646 shell : pwsh
4747 run : >
4848 .\.sonar\scanner\dotnet-sonarscanner begin
@@ -69,12 +69,13 @@ jobs:
6969 - name : Sonar End
7070 env :
7171 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
7372 shell : pwsh
7473 run : .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
7574
76- - name : Publish NuGet
77- uses :
brandedoutcast/[email protected] 78- with :
79- PROJECT_FILE_PATH : .\src\HttpRequestInterceptor\Scissors.HttpRequestInterceptor.csproj
80- NUGET_KEY : ${{ secrets.NUGET_API_KEY }}
75+ - name : Publish nupkg package to GitHub
76+ if : github.ref == 'refs/heads/branch-zero'
77+ shell : pwsh
78+ run : |
79+ cd src\HttpRequestInterceptor
80+ dotnet pack --configuration Release
81+ dotnet nuget push ".\bin\Release\*.nupkg" --source "https://nuget.pkg.github.com/MirzaMerdovic/index.json" --api-key "${{ secrets.SCISSORS_PAT }}"
Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2727## [ 1.0.0]
2828### Changes
2929- Added action for pushing nuget package
30- - Renamed project to Scissors.HttpRequestInterceptor.*
30+ - Renamed project to Scissors.HttpRequestInterceptor.*
31+
32+ ## [ 1.0.1]
33+ ### Changes
34+ - Switched from Nuget package source to GitHub
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
5- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
6- <Version >1.0.0</Version >
5+ <PackageId >Scissors</PackageId >
6+ <Version >1.0.1</Version >
7+ <Authors >Mirza Merdovic</Authors >
8+ <PackageDescription >Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes.</PackageDescription >
9+ <RepositoryUrl >https://github.com/MirzaMerdovic/scissors</RepositoryUrl >
710 <PackageLicenseFile >LICENSE</PackageLicenseFile >
8- <PackageProjectUrl >https://github.com/MirzaMerdovic/HttpRequestInterceptor</PackageProjectUrl >
9- <RepositoryUrl >https://github.com/MirzaMerdovic/HttpRequestInterceptor.git</RepositoryUrl >
1011 <PackageTags >httpclient webapi delegatinghandler interceptor</PackageTags >
11- <Description >Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes.</Description >
12- <Copyright >Mirza Merdovic</Copyright >
1312 </PropertyGroup >
1413
1514 <ItemGroup >
You can’t perform that action at this time.
0 commit comments