mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
adds logic to rename .cpz to add version...
...& points to different repo for create release action
This commit is contained in:
parent
e6904ca91c
commit
82ddd40953
2 changed files with 5 additions and 2 deletions
4
.github/scripts/ZipBuildOutput.ps1
vendored
4
.github/scripts/ZipBuildOutput.ps1
vendored
|
|
@ -26,7 +26,7 @@ Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include "*.clz", "*.cpz
|
||||||
} | Copy-Item -Destination ($destination) -Force
|
} | Copy-Item -Destination ($destination) -Force
|
||||||
Write-Host "Getting matching files..."
|
Write-Host "Getting matching files..."
|
||||||
# Get any files from the output folder that match the following extensions
|
# Get any files from the output folder that match the following extensions
|
||||||
Get-ChildItem -Path $destination | Where-Object {($_.Extension -eq ".clz") -or ($_.Extension -eq ".cpz" -or ($_.Extension -eq ".cplz"))} | ForEach-Object {
|
Get-ChildItem -Path $destination | Where-Object { ($_.Extension -eq ".clz") -or ($_.Extension -eq ".cpz" -or ($_.Extension -eq ".cplz")) } | ForEach-Object {
|
||||||
# Replace the extensions with dll and xml and create an array
|
# Replace the extensions with dll and xml and create an array
|
||||||
$filenames = @($($_ -replace "cpz|clz|cplz", "dll"), $($_ -replace "cpz|clz|cplz", "xml"))
|
$filenames = @($($_ -replace "cpz|clz|cplz", "dll"), $($_ -replace "cpz|clz|cplz", "xml"))
|
||||||
Write-Host "Filenames:"
|
Write-Host "Filenames:"
|
||||||
|
|
@ -36,6 +36,8 @@ Get-ChildItem -Path $destination | Where-Object {($_.Extension -eq ".clz") -or (
|
||||||
Get-ChildItem -Recurse -Path "$($Env:GITHUB_WORKSPACE)" -include $filenames | Copy-Item -Destination ($destination) -Force
|
Get-ChildItem -Recurse -Path "$($Env:GITHUB_WORKSPACE)" -include $filenames | Copy-Item -Destination ($destination) -Force
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Get-ChildItem -Path $destination\*.cpz | Rename-Item -NewName { "$($_.BaseName)-$($Env:VERSION)$($_.Extension)" }
|
||||||
Compress-Archive -Path $destination -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION_FILE)-$($Env:VERSION).zip" -Force
|
Compress-Archive -Path $destination -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION_FILE)-$($Env:VERSION).zip" -Force
|
||||||
Write-Host "Output Contents post Zip"
|
Write-Host "Output Contents post Zip"
|
||||||
Get-ChildItem -Path $destination
|
Get-ChildItem -Path $destination
|
||||||
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
|
|
@ -78,7 +78,8 @@ jobs:
|
||||||
# Create the release on the source repo
|
# Create the release on the source repo
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
# using contributor's version to allow for pointing at the right commit
|
||||||
|
uses: fleskesvor/create-release@feature/support-target-commitish
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: ${{ env.VERSION }}
|
release_name: ${{ env.VERSION }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue