style: Improve file paths and package output in docker workflow

This commit is contained in:
jtalborough
2024-05-06 15:14:38 -04:00
parent fcaffd0c88
commit 688f6cb659
2 changed files with 4 additions and 10 deletions

View File

@@ -65,19 +65,13 @@ jobs:
run: nuget restore .\$($Env:SOLUTION_FILE).sln
# Build the solutions in the docker image
- name: Build Solution
run: msbuild .\$($Env:SOLUTION_FILE).sln /p:Platform="Any CPU" /p:Configuration="Debug" /p:Version="${{ steps.setVersion.outputs.version }}" -m
run: msbuild .\$($Env:SOLUTION_FILE).sln /p:Platform="Any CPU" /p:Configuration="Debug" /p:Version="${{ steps.setVersion.outputs.version }}" /p:PackageOutputPath=".\output" -m
- name: Create tag for non-rc builds
if: contains(steps.setVersion.outputs.version, 'alpha')
run: |
git tag ${{ steps.setVersion.outputs.version }}
git push --tags origin
# Create the release on the source repo
- name: Install 7-Zip
run: choco install 7zip.install -y
- name: Add CPZ and CPLZ to NuGet Package
run: |
7z a .\output\PepperDash.Essentials.${{ steps.setVersion.outputs.version }}.nupkg .\output\**\*.cpz..\builds
7z a .\output\PepperDash.Essentials.${{ steps.setVersion.outputs.version }}.nupkg .\output\**\*.cplz..\builds
- name: Create Release
id: create_release
# if: contains(steps.setVersion.outputs.version,'-rc-') ||