From 2632dccbec467499693ca39608d30679d82e8f8e Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 17 Mar 2020 18:58:51 -0600 Subject: [PATCH] switches up the order of some operations --- .github/workflows/docker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 }}