Skip to content

Commit 55051be

Browse files
Add missing .outputs
1 parent bfb825c commit 55051be

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515

1616
runs-on: ubuntu-latest
1717
outputs:
18+
packageAndVersion: ${{ steps.get_version.outputs.packageAndVersion }}
1819
version: ${{ steps.get_version.outputs.version }}
1920

2021
steps:
@@ -37,9 +38,7 @@ jobs:
3738
- name: Get Version
3839
id: get_version
3940
run: |
40-
Write-Host "name=packageAndVersion::$(Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase)"
4141
Write-Host "::set-output name=packageAndVersion::$(Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase)"
42-
Write-Host "name=version::$((Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase) -replace '^.*?(\d.*)$','$1')"
4342
Write-Host "::set-output name=version::$((Split-Path -Path $(Resolve-Path "System.Text.Json.Extensions/bin/Release/*.nupkg") -LeafBase) -replace '^.*?(\d.*)$','$1')"
4443
shell: pwsh
4544
- uses: actions/upload-artifact@v2
@@ -81,8 +80,8 @@ jobs:
8180
env:
8281
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8382
with:
84-
tag_name: v${{ steps.get_version.version }}
85-
release_name: Release ${{ steps.get_version.version }}
83+
tag_name: v${{ steps.get_version.outputs.version }}
84+
release_name: Release ${{ steps.get_version.outputs.version }}
8685
draft: true
8786
prerelease: false
8887
- name: Upload Release Asset
@@ -92,6 +91,6 @@ jobs:
9291
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9392
with:
9493
upload_url: ${{ steps.create_release.outputs.upload_url }}
95-
asset_path: System.Text.Json.Extensions/bin/Release/${{ steps.get_version.packageAndVersion }}.nupkg
96-
asset_name: ${{ steps.get_version.packageAndVersion }}.nupkg
94+
asset_path: System.Text.Json.Extensions/bin/Release/${{ steps.get_version.outputs.packageAndVersion }}.nupkg
95+
asset_name: ${{ steps.get_version.outputs.packageAndVersion }}.nupkg
9796
asset_content_type: application/zip

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.7</Version>
6+
<Version>1.0.8</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)