mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 13:14:49 +00:00
added logic to write version to file and pickup in next job
This commit is contained in:
7
.github/.vscode/settings.json
vendored
Normal file
7
.github/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"workbench.colorCustomizations": {
|
||||||
|
"activityBar.background": "#19340D",
|
||||||
|
"titleBar.activeBackground": "#234912",
|
||||||
|
"titleBar.activeForeground": "#F6FCF3"
|
||||||
|
}
|
||||||
|
}
|
||||||
42
.github/workflows/docker.yml
vendored
42
.github/workflows/docker.yml
vendored
@@ -53,11 +53,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE).sln"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)"
|
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE).sln"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)"
|
||||||
./.github/scripts/ZipBuildOutput.ps1
|
./.github/scripts/ZipBuildOutput.ps1
|
||||||
- name: Upload Artifact
|
- name: Write Version
|
||||||
|
run: Write-Output $($Env:VERSION) | Out-File -FilePath ".\output\version.txt"
|
||||||
|
- 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
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: Version
|
||||||
|
path: ./output/version.txt
|
||||||
# - name: Create Release
|
# - name: Create Release
|
||||||
# id: create_release
|
# id: create_release
|
||||||
# uses: actions/create-release@v1
|
# uses: actions/create-release@v1
|
||||||
@@ -77,27 +84,38 @@ jobs:
|
|||||||
# asset_content_type: application/zip
|
# asset_content_type: application/zip
|
||||||
# env:
|
# env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
push_output:
|
internal_push_output:
|
||||||
needs: build_project
|
needs: build_project
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Public Builds Repo
|
|
||||||
if: contains('master', env.GITHUB_REF) || contains('release', env.GITHUB_REF)
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.BUILDS_TOKEN }}
|
|
||||||
path: ./builds_repo
|
|
||||||
repository: PepperDash/PepperDashCore-Builds
|
|
||||||
- name: Checkout Internal Builds Repo
|
- name: Checkout Internal Builds Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BUILDS_TOKEN }}
|
token: ${{ secrets.BUILDS_TOKEN }}
|
||||||
path: ./internal_builds_repo
|
|
||||||
repository: PepperDash-Engineering/pepperdash-core-builds
|
repository: PepperDash-Engineering/pepperdash-core-builds
|
||||||
- name: Download Artifact
|
- name: Download Build output
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Build
|
name: Build
|
||||||
|
- name: Download Version info
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: Version
|
||||||
- name: Check Directory
|
- name: Check Directory
|
||||||
run: Get-ChildItem ${{env.GITHUB_WORKSPACE}}
|
run: Get-ChildItem ${{env.GITHUB_WORKSPACE}}
|
||||||
|
# public_push_output:
|
||||||
|
# needs: build_project
|
||||||
|
# runs-on: windows-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout public Builds Repo
|
||||||
|
# uses: actions/checkout@v2
|
||||||
|
# with:
|
||||||
|
# token: ${{ secrets.BUILDS_TOKEN }}
|
||||||
|
# path: ./internal_builds_repo
|
||||||
|
# repository: PepperDash-Engineering/pepperdash-core-builds
|
||||||
|
# - name: Download Artifact
|
||||||
|
# uses: actions/download-artifact@v1
|
||||||
|
# with:
|
||||||
|
# name: Build
|
||||||
|
# - name: Check Directory
|
||||||
|
# run: Get-ChildItem ${{env.GITHUB_WORKSPACE}}
|
||||||
|
|||||||
Reference in New Issue
Block a user