Merge branch 'development' into feature/changes-to-IBridgeAdvanced

This commit is contained in:
Neil Dorin
2020-04-14 16:58:53 -06:00
committed by GitHub

View File

@@ -56,11 +56,21 @@ jobs:
- name: Zip Build Output - name: Zip Build Output
shell: powershell shell: powershell
run: ./.github/scripts/ZipBuildOutput.ps1 run: ./.github/scripts/ZipBuildOutput.ps1
# Write the version to a file to be consumed by the push jobs
- name: Write Version
run: Write-Output "$($Env:VERSION)" | Out-File -FilePath "$($Env:GITHUB_HOME)\output\version.txt"
# Upload the build output as an artifact
- name: Upload Build Output - name: Upload Build Output
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: Build name: Build
path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
# Upload the Version file as an artifact
- name: Upload version.txt
uses: actions/upload-artifact@v1
with:
name: Version
path: ${{env.GITHUB_HOME}}\output\version.txt
# Upload the build package to the release # Upload the build package to the release
- name: Upload Release Package - name: Upload Release Package
id: upload_release id: upload_release
@@ -72,7 +82,6 @@ jobs:
asset_content_type: application/zip asset_content_type: application/zip
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# This step always runs and pushes the build to the internal build rep
Internal_Push_Output: Internal_Push_Output:
needs: Build_Project needs: Build_Project
runs-on: windows-latest runs-on: windows-latest
@@ -102,8 +111,8 @@ jobs:
Remove-Item -Path ./Version/version.txt Remove-Item -Path ./Version/version.txt
Remove-Item -Path ./Version Remove-Item -Path ./Version
# Checkout/Create the branch # Checkout/Create the branch
- name: Create new branch - name: Checkout Master branch
run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/") run: git checkout master
# Download the build output into the repo # Download the build output into the repo
- name: Download Build output - name: Download Build output
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
@@ -139,10 +148,7 @@ jobs:
# Push the commit # Push the commit
- name: Push to Builds Repo - name: Push to Builds Repo
shell: powershell shell: powershell
run: | run: git push -u origin master --force
$branch = $($Env:GITHUB_REF) -replace "refs/heads/"
Write-Host "Branch: $branch"
git push -u origin $($branch) --force
# Push the tags # Push the tags
- name: Push tags - name: Push tags
run: git push --tags origin run: git push --tags origin
@@ -152,7 +158,6 @@ jobs:
Public_Push_Output: Public_Push_Output:
needs: Build_Project needs: Build_Project
runs-on: windows-latest runs-on: windows-latest
if: contains(github.ref, 'master') || contains(github.ref, 'release')
steps: steps:
# Checkout the repo # Checkout the repo
- name: Checkout Builds Repo - name: Checkout Builds Repo
@@ -178,9 +183,9 @@ jobs:
Write-Output "::set-env name=VERSION::$version" Write-Output "::set-env name=VERSION::$version"
Remove-Item -Path ./Version/version.txt Remove-Item -Path ./Version/version.txt
Remove-Item -Path ./Version Remove-Item -Path ./Version
# Checkout/Create the branch # Checkout master branch
- name: Create new branch - name: Create new branch
run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/") run: git checkout master
# Download the build output into the repo # Download the build output into the repo
- name: Download Build output - name: Download Build output
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
@@ -216,10 +221,7 @@ jobs:
# Push the commit # Push the commit
- name: Push to Builds Repo - name: Push to Builds Repo
shell: powershell shell: powershell
run: | run: git push -u origin master --force
$branch = $($Env:GITHUB_REF) -replace "refs/heads/"
Write-Host "Branch: $branch"
git push -u origin $($branch) --force
# Push the tags # Push the tags
- name: Push tags - name: Push tags
run: git push --tags origin run: git push --tags origin