mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-14 04:56:37 +00:00
modified zip name to include solution name and version#
This commit is contained in:
parent
21f665fff6
commit
6a5ba9811f
2 changed files with 32 additions and 31 deletions
2
.github/scripts/ZipBuildOutput.ps1
vendored
2
.github/scripts/ZipBuildOutput.ps1
vendored
|
|
@ -19,5 +19,5 @@ Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.c
|
||||||
}
|
}
|
||||||
} | Copy-Item -Destination ($destination)
|
} | Copy-Item -Destination ($destination)
|
||||||
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output"
|
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output"
|
||||||
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\output.zip"
|
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION) $($Env.VERSION).zip"
|
||||||
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\"
|
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\"
|
||||||
|
|
|
||||||
61
.github/workflows/docker.yml
vendored
61
.github/workflows/docker.yml
vendored
|
|
@ -7,8 +7,9 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# solution path doesn't need slashes unless there it is multiple folders deep
|
# solution path doesn't need slashes unless there it is multiple folders deep
|
||||||
|
# solution name does not include extension. .sln is assumed
|
||||||
SOLUTION_PATH: PepperDash Core
|
SOLUTION_PATH: PepperDash Core
|
||||||
SOLUTION_FILE: PepperDash Core.sln
|
SOLUTION_FILE: PepperDash Core
|
||||||
VERSION: 0.0.0-buildtype-buildnumber
|
VERSION: 0.0.0-buildtype-buildnumber
|
||||||
BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
RELEASE_BRANCH: master
|
RELEASE_BRANCH: master
|
||||||
|
|
@ -45,33 +46,33 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
Write-Output ${{ env.VERSION }}
|
Write-Output ${{ env.VERSION }}
|
||||||
./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }}
|
./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }}
|
||||||
# - name: Build Solution
|
- name: Build Solution
|
||||||
# shell: powershell
|
shell: powershell
|
||||||
# run: |
|
run: |
|
||||||
# Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE)"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)"
|
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE).sln"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)"
|
||||||
# ./.github/scripts/ZipBuildOutput.ps1
|
./.github/scripts/ZipBuildOutput.ps1
|
||||||
# - name: Upload Artifact
|
- name: Upload Artifact
|
||||||
# uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
# with:
|
with:
|
||||||
# name: Build
|
name: Build
|
||||||
# path: ./output.zip
|
path: ./output.zip
|
||||||
# - name: Create Release
|
- name: Create Release
|
||||||
# id: create_release
|
id: create_release
|
||||||
# uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
# with:
|
with:
|
||||||
# tag_name: v${{ env.VERSION }}
|
tag_name: v${{ env.VERSION }}
|
||||||
# release_name: v${{ env.VERSION }}
|
release_name: v${{ env.VERSION }}
|
||||||
# prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# - name: Upload
|
- name: Upload
|
||||||
# id: upload_release
|
id: upload_release
|
||||||
# uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
# with:
|
with:
|
||||||
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
# asset_path: ./output.zip
|
asset_path: ./output.zip
|
||||||
# asset_name: output.zip
|
asset_name: output.zip
|
||||||
# asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue