Skip to content

Commit 8d5e4c9

Browse files
committed
e
1 parent 2c5c317 commit 8d5e4c9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/packages.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ jobs:
3939
run: |
4040
dotnet tool install gitversion.tool -g
4141
dotnet-gitversion
42-
- id: version
43-
run: echo "::set-output name=VERSION::${env:NuGetVersionV2}"
44-
- id: prepare_output_VERSION
45-
run: |
46-
echo "`$env:V - $env:V"
47-
echo "`$env:VER - $env:VER"
48-
echo "`$env:VER_NEEDS - $env:VER_NEEDS"
49-
env:
50-
V: ${{ VERSION }}
51-
VER: ${{ steps.version.VERSION }}
52-
VER_NEEDS: ${{ needs.prepare.output.version.VERSION }}
53-
- run: throw "stop"
5442
- name: Restore dependencies
5543
run: msbuild /t:restore
5644

@@ -71,6 +59,10 @@ jobs:
7159
ARTIFACT_FOLDER: "${{ github.workspace }}/nuget"
7260
VERSION: "${{ needs.prepare.output.VERSION }}"
7361
steps:
62+
- name: Setup GitVersion
63+
run: |
64+
dotnet tool install gitversion.tool -g
65+
dotnet-gitversion
7466
- name: Download a Build Artifact
7567
uses: actions/[email protected]
7668
with:
@@ -81,7 +73,7 @@ jobs:
8173
env:
8274
TOKEN: ${{ secrets.GITHUB_TOKEN }}
8375
run: |
84-
echo "Deploying [SharpNinja.Extensions.WindowsAppSdkHost.${env:VERSION}.symbols.nupkg] from [$env:ARTIFACT_FOLDER]"
76+
echo "Deploying [SharpNinja.Extensions.WindowsAppSdkHost.${env:NuGetVersionV2}.symbols.nupkg] from [$env:ARTIFACT_FOLDER]"
8577
$githubUrl="https://nuget.pkg.github.com/OWNER/index.json"
8678
& dotnet nuget add source --username sharpninja --password $env:TOKEN --store-password-in-clear-text --name github $githubUrl
8779
$nupkgs = GCI SharpNinja.Extensions.WindowsAppSdkHost.${env:VERSION}.symbols.nupkg -Path $env:ARTIFACT_FOLDER -ErrorAction Stop -Verbose

0 commit comments

Comments
 (0)