diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c7e2f2..09c9e6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ -name: Build +name: Scissors CI on: push: branches: - branch-zero pull_request: - types: [opened, synchronize, reopened] + jobs: build: name: Build @@ -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 @@ -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 @@ -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 }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6662be0..05ef598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.* \ No newline at end of file +- Renamed project to Scissors.HttpRequestInterceptor.* + +## [1.0.1] +### Changes +- Switched from Nuget package source to GitHub \ No newline at end of file diff --git a/src/HttpRequestInterceptor/Scissors.HttpRequestInterceptor.csproj b/src/HttpRequestInterceptor/Scissors.HttpRequestInterceptor.csproj index 7ff22e6..8c37ded 100644 --- a/src/HttpRequestInterceptor/Scissors.HttpRequestInterceptor.csproj +++ b/src/HttpRequestInterceptor/Scissors.HttpRequestInterceptor.csproj @@ -2,14 +2,13 @@ netstandard2.0 - true - 1.0.0 + Scissors + 1.0.1 + Mirza Merdovic + Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes. + https://github.com/MirzaMerdovic/scissors LICENSE - https://github.com/MirzaMerdovic/HttpRequestInterceptor - https://github.com/MirzaMerdovic/HttpRequestInterceptor.git httpclient webapi delegatinghandler interceptor - Highly configurable implementation of DelegatingHandler that can be used for mocking the behavior of requests sent to specific routes. - Mirza Merdovic