Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build
name: Scissors CI
on:
push:
branches:
- branch-zero
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
name: Build
Expand All @@ -14,7 +14,9 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.11
- uses: actions/checkout@v2

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

Expand All @@ -41,8 +43,6 @@ jobs:
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner

- name: Sonar Begin
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: pwsh
run: >
.\.sonar\scanner\dotnet-sonarscanner begin
Expand All @@ -69,12 +69,13 @@ jobs:
- name: Sonar End
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: pwsh
run: .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

- name: Publish NuGet
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: .\src\HttpRequestInterceptor\Scissors.HttpRequestInterceptor.csproj
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Publish nupkg package to GitHub
if: github.ref == 'refs/heads/branch-zero'
shell: pwsh
run: |
cd src\HttpRequestInterceptor
dotnet pack --configuration Release
dotnet nuget push ".\bin\Release\*.nupkg" --source "https://nuget.pkg.github.com/MirzaMerdovic/index.json" --api-key "${{ secrets.SCISSORS_PAT }}"
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.0.0]
### Changes
- Added action for pushing nuget package
- Renamed project to Scissors.HttpRequestInterceptor.*
- Renamed project to Scissors.HttpRequestInterceptor.*

## [1.0.1]
### Changes
- Switched from Nuget package source to GitHub
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<PackageId>Scissors</PackageId>
<Version>1.0.1</Version>
<Authors>Mirza Merdovic</Authors>
<PackageDescription>Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes.</PackageDescription>
<RepositoryUrl>https://github.com/MirzaMerdovic/scissors</RepositoryUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://github.com/MirzaMerdovic/HttpRequestInterceptor</PackageProjectUrl>
<RepositoryUrl>https://github.com/MirzaMerdovic/HttpRequestInterceptor.git</RepositoryUrl>
<PackageTags>httpclient webapi delegatinghandler interceptor</PackageTags>
<Description>Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes.</Description>
<Copyright>Mirza Merdovic</Copyright>
</PropertyGroup>

<ItemGroup>
Expand Down