Skip to content

Commit ed56c28

Browse files
committed
Remove 'extract version' step
1 parent a8a757e commit ed56c28

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/cd-controls.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ jobs:
5050
run: |
5151
for /f %%a in ('dir /b /a:d %localappdata%\Microsoft\VisualStudio\17*') do echo UsePreviews=True>%localappdata%\Microsoft\VisualStudio\%%a\sdk.txt
5252
53-
- name: Extract Version from CurrentVersion.props
54-
id: extract_version
55-
shell: pwsh
56-
run: |
57-
$xml = [xml](Get-Content $env:PROJECT_DIR\CurrentVersion.props)
58-
$version = $xml.Project.PropertyGroup.Version
59-
Write-Output "Found publish version, $version"
60-
echo "::set-output name=version::$version"
61-
6253
- name: Restore NuGet
6354
shell: pwsh
6455
run: |
@@ -75,7 +66,7 @@ jobs:
7566
-p:Configuration=$env:CONFIGURATION
7667
7768
- name: Package Files UI Controls
78-
run: dotnet pack ${{ env.PACKAGE_PROJECT_PATH }} --configuration ${{ env.CONFIGURATION }} --no-build -o ./output -p:Version=${{ steps.extract_version.outputs.version }}
69+
run: dotnet pack ${{ env.PACKAGE_PROJECT_PATH }} --configuration ${{ env.CONFIGURATION }} --no-build -o ./output
7970

8071
- name: Publish package to NuGet
8172
run: dotnet nuget push ./output/*.nupkg --api-key (SECRET GOES HERE) --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)