From 3c7330857705d4478c124b8f0542a1b248f5dcb0 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Mon, 16 Mar 2020 15:37:45 -0600 Subject: [PATCH] fixed env variables and added steps to checkout build repos --- .github/scripts/ZipBuildOutput.ps1 | 2 +- .github/workflows/docker.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/scripts/ZipBuildOutput.ps1 b/.github/scripts/ZipBuildOutput.ps1 index 39ae2b4..b8abd0a 100644 --- a/.github/scripts/ZipBuildOutput.ps1 +++ b/.github/scripts/ZipBuildOutput.ps1 @@ -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)\" diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index baf8202..d71eb43 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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