Moving back to putting all necessary properties in the file

This commit is contained in:
Neil Dorin
2020-03-18 10:02:45 -06:00
parent bffe60147a
commit a6fa9df647

View File

@@ -58,17 +58,17 @@ jobs:
./.github/scripts/ZipBuildOutput.ps1 ./.github/scripts/ZipBuildOutput.ps1
- name: Write Version - name: Write Version
run: run:
Write-Output "VERSION = $($Env:VERSION)" | Out-File -FilePath ".\output\version.txt" Write-Output "VERSION = $($Env:VERSION)" | Out-File -FilePath ".\output\properties.txt"
- 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
- name: Upload Version.txt - name: Upload properties.txt
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: Version name: Version
path: ./output/version.txt path: ./output/properties.txt
# - name: Create Release # - name: Create Release
# id: create_release # id: create_release
# uses: actions/create-release@v1 # uses: actions/create-release@v1
@@ -97,21 +97,21 @@ jobs:
with: with:
token: ${{ secrets.BUILDS_TOKEN }} token: ${{ secrets.BUILDS_TOKEN }}
repository: PepperDash-Engineering/pepperdash-core-builds repository: PepperDash-Engineering/pepperdash-core-builds
- name: Download Version Info - name: Download Build Property Info
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: Version name: Properties
- name: Check Directory - name: Check Directory
run: Get-ChildItem "./" run: Get-ChildItem "./"
- name: Set Version Number - name: Set Version Number
shell: powershell shell: powershell
run: | run: |
Get-ChildItem "./Version" Get-ChildItem "./Properties"
$version = Get-Content -Path ./Version/version.txt $version = Get-Content -Path ./Version/properties.txt
Write-Host "Version: $version" Write-Host "Version: $version"
Write-Output "::set-env name=VERSION::$version" Write-Output "::set-env name=VERSION::$version"
Remove-Item -Path ./Version/version.txt Remove-Item -Path ./Properties/properties.txt
Remove-Item -Path ./Version Remove-Item -Path ./Properties
- name: Create new branch - name: Create new branch
run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/") run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/")
- name: Download Build output - name: Download Build output
@@ -177,9 +177,9 @@ jobs:
# shell: powershell # shell: powershell
# run: | # run: |
# Get-ChildItem "./" # Get-ChildItem "./"
# $version = Get-Content -Path ./version.txt # $version = Get-Content -Path ./properties.txt
# Write-Output "::set-env name=VERSION::$version" # Write-Output "::set-env name=VERSION::$version"
# Remove-Item -Path ./version.txt # Remove-Item -Path ./properties.txt
# - name: Check Directory # - name: Check Directory
# run: | # run: |
# Get-ChildItem "./" # Get-ChildItem "./"