switches up the order of some operations

This commit is contained in:
Andrew Welker
2020-03-17 18:58:51 -06:00
parent 4cfd51f76e
commit 2632dccbec

View File

@@ -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 }}