Skip to content

Commit

Permalink
Merge pull request #5 from ramonesz297/release-v1.0.2
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
ramonesz297 authored Jan 14, 2022
2 parents b499c70 + c1fc55b commit 2aba9e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
publish:
name: build, pack & publish
runs-on: windows-latest
runs-on: ubuntu-latest
environment:
name: main
steps:
Expand All @@ -17,30 +17,15 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: tests
run: dotnet test .\Minio.Client.Http.Test\Minio.Client.Http.Test.csproj -c Release --logger trx --results-directory out-tests

- name: report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: test run
path: out-tests/*.trx
reporter: dotnet-trx
fail-on-error: 'true'

- name: pack-http-client
if: success()
run: dotnet pack .\Minio.Client.Http\Minio.Client.Http.csproj -c Release -o out --include-symbols --include-source
run: dotnet pack ./Minio.Client.Http/Minio.Client.Http.csproj -c Release -o out --include-symbols --include-source

- name: publish-http-client
if: success()
run: dotnet nuget push .\out\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ACCESS_TOKEN}} --skip-duplicate
run: dotnet nuget push ./out/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ACCESS_TOKEN}} --skip-duplicate

- name: pack-http-client-extensions
if: success()
run: dotnet pack .\Minio.Client.Http.DependencyInjection\Minio.Client.Http.DependencyInjection.csproj -c Release -o out-extensions --include-symbols --include-source
run: dotnet pack ./Minio.Client.Http.DependencyInjection/Minio.Client.Http.DependencyInjection.csproj -c Release -o out-extensions --include-symbols --include-source

- name: publish-http-client-extensions
if: success()
run: dotnet nuget push .\out-extensions\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ACCESS_TOKEN}} --skip-duplicate
run: dotnet nuget push ./out-extensions/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ACCESS_TOKEN}} --skip-duplicate
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<Authors>ramonesz297</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/ramonesz297/minio-client</RepositoryUrl>
<AssemblyVersion>1.0.1</AssemblyVersion>
<FileVersion>1.0.1</FileVersion>
<Version>1.0.1</Version>
<AssemblyVersion>1.0.2</AssemblyVersion>
<FileVersion>1.0.2</FileVersion>
<Version>1.0.2</Version>
<RepositoryType>git</RepositoryType>
<PackageVersion>1.0.1</PackageVersion>
<PackageVersion>1.0.2</PackageVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>
Expand Down

0 comments on commit 2aba9e5

Please sign in to comment.