Skip to content

Commit e242ddd

Browse files
Polish dotnet-core.yml
1 parent 55051be commit e242ddd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
name: .NET Core ${{ matrix.dotnet }}
1515

1616
runs-on: ubuntu-latest
17+
env:
18+
DOTNET_NOLOGO: true
1719
outputs:
1820
packageAndVersion: ${{ steps.get_version.outputs.packageAndVersion }}
1921
version: ${{ steps.get_version.outputs.version }}
@@ -62,20 +64,20 @@ jobs:
6264
if-no-files-found: error
6365

6466
- name: Setup .NET Core for GPR
65-
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
67+
if: success() && github.repository_owner == 'TheConstructor' && github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.dotnet == '3.1.x'
6668
uses: actions/setup-dotnet@v1
6769
with:
6870
dotnet-version: ${{matrix.dotnet}}
69-
source-url: https://nuget.pkg.github.com/TheConstructor/index.json
71+
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
7072
env:
7173
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
7274
- name: Publish the package to GPR
73-
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
75+
if: success() && github.repository_owner == 'TheConstructor' && github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.dotnet == '3.1.x'
7476
run: dotnet nuget push System.Text.Json.Extensions/bin/Release/*.nupkg
7577

7678
- name: Create Release
7779
id: create_release
78-
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
80+
if: success() && github.repository_owner == 'TheConstructor' && github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.dotnet == '3.1.x'
7981
uses: actions/create-release@v1
8082
env:
8183
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -85,7 +87,7 @@ jobs:
8587
draft: true
8688
prerelease: false
8789
- name: Upload Release Asset
88-
if: success() && github.event_name == 'push' && matrix.dotnet == '3.1.x'
90+
if: success() && github.repository_owner == 'TheConstructor' && github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.dotnet == '3.1.x'
8991
uses: actions/upload-release-asset@v1
9092
env:
9193
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

System.Text.Json.Extensions/System.Text.Json.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<PackageId>System.Text.Json.Extensions</PackageId>
6-
<Version>1.0.8</Version>
6+
<Version>1.0.9</Version>
77
<Authors>TheConstructor</Authors>
88
<PackageDescription>This package tries to collect some extensions and converters that ease the usage of System.Text.Json.</PackageDescription>
99
<RepositoryUrl>https://github.com/TheConstructor/System.Text.Json.Extensions</RepositoryUrl>

0 commit comments

Comments
 (0)