fixed env variables and added steps to checkout build repos

This commit is contained in:
Andrew Welker
2020-03-16 15:37:45 -06:00
parent 524df330a1
commit 3c73308577
2 changed files with 14 additions and 1 deletions

View File

@@ -19,5 +19,5 @@ Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.c
}
} | Copy-Item -Destination ($destination)
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output"
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION)-$($Env.VERSION).zip"
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION_FILE)-$($Env.VERSION).zip"
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\"

View File

@@ -34,6 +34,19 @@ jobs:
Write-Host "Setting build type to Release"
Write-Output "::set-env name=BUILD_TYPE::Release"
}
- name: Checkout Builds Repo
if: contains('release', env.BUILD_TYPE)
uses: actions/checkout@v2
with:
token: ${{ secrets.BUILD_TOKEN }}
path: ./builds_repo
repo: PepperDash/PepperDashCore-Builds
- name: Checkout Builds Repo
uses: actions/checkout@v2
with:
token: ${{ secrets.BUILD_TOKEN }}
path: ./internal_builds_repo
repo: PepperDash-Engineering/pepperdash-core-builds
- name: Fetch tags
run: git fetch --tags
- name: Set Version Number