diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 258a356..a6fb477 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -93,10 +93,6 @@ jobs: with: token: ${{ secrets.BUILDS_TOKEN }} repository: PepperDash-Engineering/pepperdash-core-builds - - name: Download Build output - uses: actions/download-artifact@v1 - with: - name: Build - name: Download Version Info uses: actions/download-artifact@v1 with: @@ -112,11 +108,15 @@ jobs: Write-Output "::set-env name=VERSION::$version" Remove-Item -Path ./Version/version.txt Remove-Item -Path ./Version + - name: Create new branch + run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/") + - name: Download Build output + uses: actions/download-artifact@v1 + with: + name: Build + path: ./ - name: Copy build output and push run: | - git checkout -b $($Env:GITHUB_REF -Replace "refs/heads/") - Get-ChildItem -Path "./Build" -Recurse | Copy-Item -Path ./ - Remove-Item -Path ./Build -Recurse git add . git commit -m "Build ${{ env.GITHUB_RUN_NUMBER }} from commit: https://github.com/${{ env.GITHUB_REPOSITORY }}/commit/${{ env.GITHUB_SHA }}" git tag ${{ env.VERSION }}