mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 05:04:48 +00:00
added logic to get version from previous step
This commit is contained in:
14
.github/scripts/ZipBuildOutput.ps1
vendored
14
.github/scripts/ZipBuildOutput.ps1
vendored
@@ -2,22 +2,22 @@ $destination = "$($Env:GITHUB_WORKSPACE)\output"
|
|||||||
New-Item -ItemType Directory -Force -Path ($destination)
|
New-Item -ItemType Directory -Force -Path ($destination)
|
||||||
Get-ChildItem ($destination)
|
Get-ChildItem ($destination)
|
||||||
$exclusions = @(git submodule foreach --quiet 'echo $name')
|
$exclusions = @(git submodule foreach --quiet 'echo $name')
|
||||||
Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.cpz", "*.cplz") | ForEach-Object{
|
Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.cpz", "*.cplz") | ForEach-Object {
|
||||||
$allowed = $true;
|
$allowed = $true;
|
||||||
foreach($exclude in $exclusions) {
|
foreach ($exclude in $exclusions) {
|
||||||
if((Split-Path $_.FullName -Parent).contains("$($exclude)")) {
|
if ((Split-Path $_.FullName -Parent).contains("$($exclude)")) {
|
||||||
$allowed = $false;
|
$allowed = $false;
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if($allowed) {
|
}
|
||||||
|
if ($allowed) {
|
||||||
Write-Host "allowing $($_)"
|
Write-Host "allowing $($_)"
|
||||||
$_;
|
$_;
|
||||||
}
|
}
|
||||||
} | Copy-Item -Destination ($destination)
|
} | Copy-Item -Destination ($destination)
|
||||||
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output" -include @("*.cpz", "*.clz", "*.cplz") | ForEach-Object {
|
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output" -include @("*.cpz", "*.clz", "*.cplz") | ForEach-Object {
|
||||||
$filenames = @($_ -replace "cpz|clz|cplz","dll",$_ -replace "cpz|clz|cplz","xml")
|
$filenames = @($_ -replace "cpz|clz|cplz", "dll", $_ -replace "cpz|clz|cplz", "xml")
|
||||||
if($filenames.length > 0) {
|
if ($filenames.length -gt 0) {
|
||||||
Get-ChildItem -Recurse -Path "$($Env:GITHUB_WORKSPACE)" -include $filenames | Copy-Item -Destination ($destination)
|
Get-ChildItem -Recurse -Path "$($Env:GITHUB_WORKSPACE)" -include $filenames | Copy-Item -Destination ($destination)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
.github/workflows/docker.yml
vendored
12
.github/workflows/docker.yml
vendored
@@ -97,12 +97,22 @@ jobs:
|
|||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Build
|
name: Build
|
||||||
|
path: ./build.zip
|
||||||
- name: Download Version info
|
- name: Download Version info
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Version
|
name: Version
|
||||||
|
path: ./version.zip
|
||||||
|
- name: Set Version Number
|
||||||
|
run: |
|
||||||
|
Expand-Archive -Path ./version.zip -DestinationPath ./
|
||||||
|
$version = Get-Content -Path ./version.txt
|
||||||
|
Write-Output "::set-env name=VERSION::$version"
|
||||||
|
Remove-Item -Path ./version.zip
|
||||||
|
Remove-Item -Path ./version.txt
|
||||||
- name: Check Directory
|
- name: Check Directory
|
||||||
run: Get-ChildItem ${{env.GITHUB_WORKSPACE}}
|
run: |
|
||||||
|
Get-ChildItem ./
|
||||||
# public_push_output:
|
# public_push_output:
|
||||||
# needs: build_project
|
# needs: build_project
|
||||||
# runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user